/*
Theme Name: Elite Locksmith
Theme URI: https://elite-locksmith.com
Author: Elite Locksmith
Description: Lightweight custom block theme for Elite Locksmith (Hampton Roads, VA). Black and gold brand, self-hosted fonts, no page builder, no extra JavaScript.
Version: 1.11.0
Requires at least: 6.5
Tested up to: 7.1
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: elite-locksmith
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
:where(a):focus-visible,
:where(button, summary, input, textarea, select):focus-visible {
	outline: 3px solid var(--wp--preset--color--gold-light);
	outline-offset: 3px;
	border-radius: 2px;
}
.screen-reader-text:focus { clip: auto; height: auto; width: auto; }

.el-skip {
	position: absolute; left: -9999px; top: 8px; z-index: 1000;
	background: var(--wp--preset--color--gold); color: #0A0A0A; padding: 10px 16px; font-weight: 700;
}
.el-skip:focus { left: 8px; }

/* ---------- Header ---------- */
.el-topbar { background: var(--wp--preset--color--gold-solid); color: #0A0A0A; font-size: 0.875rem; font-weight: 600; }
.el-topbar p { margin: 0; }
.el-topbar a { color: #0A0A0A; text-decoration: none; font-weight: 700; }
.el-topbar a:hover, .el-topbar a:focus { color: #0A0A0A; text-decoration: underline; }
.el-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.el-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.el-brand img { width: 40px; height: 56px; }
.el-brand-name { display: flex; flex-direction: column; line-height: 1; }
.el-brand-name b { font-family: var(--wp--preset--font-family--heading); font-size: 28px; color: var(--wp--preset--color--gold); letter-spacing: 2px; }
.el-brand-name span { font-size: 11px; color: #fff; letter-spacing: 5px; margin-top: 4px; }
.el-nav a { color: var(--wp--preset--color--ink); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.el-nav a:hover, .el-nav a:focus { color: var(--wp--preset--color--gold); }


/* ---------- Sections ---------- */
.el-section { padding-top: clamp(56px, 8vw, 88px); padding-bottom: clamp(56px, 8vw, 88px); }
.el-band { background: #111111; border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); }
.el-eyebrow { color: var(--wp--preset--color--gold-solid); font-weight: 700; font-size: 0.8125rem; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 0.5rem; }
.el-lead { font-size: 1.1875rem; color: #CFC8B8; box-sizing: border-box; padding-right: max(0px, calc(100% - 620px)); }
.el-muted { color: var(--wp--preset--color--muted); }
.el-center { text-align: center; }

/* Hero */
.el-hero { border-bottom: 1px solid var(--wp--preset--color--line); }
.el-hero h1 { margin-top: 0.5rem; }
.el-trust { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 0.9375rem; color: #CFC8B8; }
.el-trust li::before { content: "\2713"; color: var(--wp--preset--color--gold); margin-right: 8px; font-weight: 700; }
.el-photo {
	min-height: 320px; border: 1px dashed #5C4D2C; border-radius: 10px; background: var(--wp--preset--color--surface);
	display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #8F856F;
}
.el-photo img { border-radius: 10px; }

/* Buttons */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--gold); border: 2px solid var(--wp--preset--color--gold);
	padding: 12px 24px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus { background: var(--wp--preset--color--gold); color: #0A0A0A; }

/* Divisions */
.el-division { display: flex; gap: 16px; align-items: center; }
.el-division h3, .el-division-title { font-family: var(--wp--preset--font-family--heading); color: var(--wp--preset--color--gold); font-size: 1.25rem; margin: 0; }
.el-division p { margin: 0; font-size: 0.9375rem; color: var(--wp--preset--color--muted); }

/* Cards */
.el-card {
	position: relative; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px; padding: 28px; gap: 10px; transition: border-color .15s ease;
}
.el-card:hover, .el-card:focus-within { border-color: var(--wp--preset--color--gold); }
.el-card h3 { margin: 0; color: var(--wp--preset--color--cream); }
.el-card h3 a { color: inherit; text-decoration: none; }
.el-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.el-card p { margin: 0; font-size: 0.9375rem; color: var(--wp--preset--color--muted); }
.el-card .el-more { color: var(--wp--preset--color--gold); font-weight: 600; font-size: 0.875rem; }
.el-card--gold { background: var(--wp--preset--color--gold); border-color: var(--wp--preset--color--gold); }
.el-card--gold h3, .el-card--gold p, .el-card--gold .el-more { color: #0A0A0A; }
.el-icon { display: block; flex-shrink: 0; }

/* Steps */
.el-step { text-align: center; }
.el-step-num {
	display: inline-flex; width: 56px; height: 56px; border: 2px solid var(--wp--preset--color--gold); border-radius: 50%;
	align-items: center; justify-content: center; font-family: var(--wp--preset--font-family--body); font-weight: 700; font-size: 22px; line-height: 1;
	color: var(--wp--preset--color--gold); margin: 0 auto;
}
.el-step h3 { margin: 14px 0 6px; }
.el-step p { margin: 0; color: var(--wp--preset--color--muted); font-size: 0.9375rem; }

/* Areas */
.el-areas { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.el-areas a {
	display: block; border: 1px solid var(--wp--preset--color--line); border-radius: 8px; padding: 14px 18px;
	text-decoration: none; color: var(--wp--preset--color--ink); font-weight: 600;
}
.el-areas a:hover, .el-areas a:focus { border-color: var(--wp--preset--color--gold); color: var(--wp--preset--color--gold); }

/* Reviews */
.el-review { border: 1px dashed #5C4D2C; border-radius: 10px; padding: 28px; color: #8F856F; font-size: 0.9375rem; }

/* FAQ */
.el-faq { border-top: 1px solid var(--wp--preset--color--line); padding: 18px 0; margin-top: 0 !important; margin-bottom: 0 !important; }
.el-faq:last-of-type { border-bottom: 1px solid var(--wp--preset--color--line); }
.el-faq summary { font-weight: 700; font-size: 1.125rem; color: var(--wp--preset--color--cream); cursor: pointer; }
.el-faq p { color: #CFC8B8; margin: 10px 0 0; }

/* CTA band */
.el-cta { background: var(--wp--preset--color--gold-solid); color: #0A0A0A; }
.el-cta h2, .el-cta p { color: #0A0A0A; margin: 0; }
.el-cta .wp-block-button__link { background: #0A0A0A; color: var(--wp--preset--color--cream); font-size: 1.375rem; padding: 18px 32px; }
.el-cta .wp-block-button__link:hover, .el-cta .wp-block-button__link:focus { background: #1d1d1d; color: #fff; }

/* Service page */
.el-breadcrumb { font-size: 0.875rem; color: #8F856F; }
.el-breadcrumb a { color: var(--wp--preset--color--muted); text-decoration: underline; text-underline-offset: 3px; }
.el-facts { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; padding: 28px; }
.el-facts h2 { font-size: 1.25rem; color: var(--wp--preset--color--gold); }
.el-facts table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.el-facts td { padding: 6px 0; border: 0; }
.el-facts td:first-child { color: #8F856F; width: 40%; }
.el-facts td:last-child { color: var(--wp--preset--color--cream); font-weight: 600; }
.el-side-cta { background: var(--wp--preset--color--gold-solid); border-radius: 10px; padding: 28px; color: #0A0A0A; }
.el-side-cta h2, .el-side-cta p { color: #0A0A0A; }
.el-side-cta h2 { font-size: 1.375rem; }
.el-side-cta .wp-block-button { width: 100%; }
.el-side-cta .wp-block-button__link { width: 100%; background: #0A0A0A; color: var(--wp--preset--color--cream); font-size: 1.25rem; }
.el-side-box { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; padding: 24px; }
.el-side-box h2 { font-size: 1rem; font-family: var(--wp--preset--font-family--body); }
.el-side-box p, .el-side-box li { font-size: 0.9375rem; color: var(--wp--preset--color--muted); }
.el-article h2 { margin-top: 2.5rem; }
.el-article p, .el-article li { color: #CFC8B8; }

/* ---------- Footer ---------- */
.el-footer { border-top: 1px solid var(--wp--preset--color--line); font-size: 0.9375rem; color: var(--wp--preset--color--muted); }
.el-footer h2 { font-size: 1rem; font-family: var(--wp--preset--font-family--body); color: var(--wp--preset--color--cream); margin-bottom: 8px; }
.el-footer p { margin: 0 0 4px; }
.el-footer a { text-decoration: none; }
.el-footer ul { list-style: none; padding: 0; margin: 0; }
.el-footer li { margin-bottom: 4px; }
.el-copy { font-size: 0.8125rem; color: #948B78; }

/* Sticky call button on phones */
.el-mobile-call { display: none; }
@media (max-width: 781px) {
	.el-mobile-call {
		display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 999;
		background: var(--wp--preset--color--gold); color: #0A0A0A !important; text-align: center; font-weight: 700;
		font-size: 1.125rem; padding: 14px; border-radius: 8px; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.5);
	}
	body { padding-bottom: 76px; }
	.el-header .wp-block-buttons { display: none; }
	.el-areas { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}

/* Plain pages (privacy, about) get breathing room under the header */
.el-main > .wp-block-post-content > :first-child:not(.alignfull) { margin-top: 56px; }
.el-main > .wp-block-post-content > :last-child:not(.alignfull) { margin-bottom: 56px; }

/* Contact + careers */
.el-trust--stack { flex-direction: column; font-size: 1.0625rem; }
.el-form .wpforms-container { margin: 0 !important; }
.el-form input, .el-form textarea, .el-form select {
	background: #0A0A0A !important; color: var(--wp--preset--color--ink) !important;
	border: 1px solid #5C4D2C !important; border-radius: 6px !important; font-family: inherit !important;
}
.el-form label { color: var(--wp--preset--color--ink) !important; }
.el-form button[type="submit"], .el-form .wpforms-submit {
	background: var(--wp--preset--color--gold) !important; color: #0A0A0A !important; border: 0 !important;
	border-radius: 6px !important; font-weight: 700 !important; padding: 14px 28px !important;
}

/* Brand panel shown in the home hero until a real photo is added */
.el-photo--brand { flex-direction: column; gap: 18px; border-style: solid; border-color: var(--wp--preset--color--line); background: radial-gradient(circle at 50% 40%, #1b1710 0%, #0f0f0f 70%); }
.el-photo--brand img { width: 96px; height: auto; }
.el-photo--brand p { margin: 0; color: var(--wp--preset--color--cream); font-family: var(--wp--preset--font-family--heading); font-size: 1.25rem; letter-spacing: 1px; line-height: 1.5; }
.el-division-title { font-weight: 700; line-height: 1.2; }

/* Real job photos */
.el-photo--img { padding: 0; border: 1px solid var(--wp--preset--color--line); overflow: hidden; min-height: 0; aspect-ratio: 1 / 1; max-width: 560px; margin-left: 0; margin-right: 0; }
.el-photo--img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.el-photo--hero { max-width: none; aspect-ratio: 4 / 4.2; max-height: 560px; }
@media (max-width: 781px) { .el-photo--hero { aspect-ratio: 4 / 3; } }

/* ---------- Mobile menu (overlay) ---------- */
.el-nav .el-nav-call { display: none; }
.wp-block-navigation.el-nav .wp-block-navigation__responsive-container.is-menu-open,
.wp-block-navigation.el-nav:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
	background: #0A0A0A !important; color: var(--wp--preset--color--ink) !important; padding: 24px !important;
}
.el-nav .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; fill: var(--wp--preset--color--gold); }
.el-nav .is-menu-open .wp-block-navigation__responsive-close { max-width: none; width: 100%; }
.el-nav .is-menu-open .wp-block-navigation__responsive-container-close { top: 22px; right: 22px; color: var(--wp--preset--color--gold); }
.el-nav .is-menu-open .wp-block-navigation__responsive-container-close svg { width: 32px; height: 32px; fill: currentColor; }
.el-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 64px !important; align-items: stretch !important; }
.el-nav .is-menu-open .wp-block-navigation__container { width: 100%; gap: 0 !important; align-items: stretch !important; justify-content: flex-start !important; }
.el-nav .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--wp--preset--color--line); align-items: stretch !important; }
.el-nav .is-menu-open .wp-block-navigation-item__content {
	display: block !important; width: 100%; box-sizing: border-box; padding: 20px 4px !important; text-align: left !important;
	font-family: var(--wp--preset--font-family--heading); font-size: 1.625rem !important; font-weight: 700;
	color: var(--wp--preset--color--cream) !important; letter-spacing: 1px;
}
.el-nav .is-menu-open .wp-block-navigation-item__content:hover,
.el-nav .is-menu-open .wp-block-navigation-item__content:focus { color: var(--wp--preset--color--gold) !important; }
.el-nav .is-menu-open .el-nav-call { display: block; border-bottom: 0; margin-top: 28px; }
.el-nav .is-menu-open .el-nav-call .wp-block-navigation-item__content {
	background: var(--wp--preset--color--gold); color: #0A0A0A !important; text-align: center !important; border-radius: 8px;
	font-family: var(--wp--preset--font-family--body); font-size: 1.25rem !important; padding: 16px !important; letter-spacing: 0;
}

/* ---------- Phone layout polish ---------- */
@media (max-width: 781px) {
	/* Top bar: one centered line (the phone number is in the sticky Call button) */
	.el-topbar .wp-block-group { justify-content: center !important; }
	.el-topbar p:last-child { display: none; }
	.el-topbar p { text-align: center; font-size: 0.8125rem; }

	/* More air between stacked columns */
	.wp-block-columns { row-gap: 36px; }

	/* Service cards: compact, icon on the left */
	.el-card { display: grid !important; grid-template-columns: 40px 1fr; column-gap: 16px; row-gap: 4px; padding: 20px; align-items: start; }
	.el-card > * { margin: 0 !important; grid-column: 2; }
	.el-card > .el-icon { grid-column: 1; grid-row: 1 / span 3; width: 36px; height: 36px; margin-top: 2px !important; }
	.el-card h3 { font-size: 1.0625rem; }

	/* City buttons: two per row */
	.el-areas { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
	.el-areas a { padding: 12px 14px; font-size: 0.9375rem; }
	.el-areas li:last-child:nth-child(odd) { grid-column: 1 / -1; }

	/* Steps: tighter */
	.el-step-num { width: 48px; height: 48px; font-size: 19px; }
	.el-faq summary { font-size: 1.0625rem; }
	.el-facts, .el-side-cta, .el-side-box { padding: 22px; }
}

/* ---------- Service area map ---------- */
.el-map-wrap { margin: 32px 0 0; }
.el-map { display: block; width: 100%; height: auto; border: 1px solid var(--wp--preset--color--line); border-radius: 10px; }
.el-map .w { fill: #0e141b; }
.el-map .l { fill: #1b1b1b; stroke: #2b2b2b; stroke-width: .8; }
.el-map .s { fill: #3a2e15; stroke: #C9A04A; stroke-width: 1; }
.el-map .m { fill: #D9AC4C; stroke: #0A0A0A; stroke-width: 2; transition: r .15s ease; }
.el-map .m.b { fill: #F7DF92; }
.el-map text { font-family: var(--wp--preset--font-family--body); font-size: 17px; font-weight: 600; fill: #F2E6C4; paint-order: stroke; stroke: #0A0A0A; stroke-width: 4px; }
.el-map a:hover text, .el-map a:focus text { fill: #F7DF92; text-decoration: underline; }
.el-map a:focus { outline: none; }
.el-map a:focus-visible circle { stroke: #F7DF92; stroke-width: 4; }
.el-map-wrap figcaption { margin-top: 10px; font-size: 0.8125rem; color: var(--wp--preset--color--muted); display: flex; flex-wrap: wrap; gap: 6px 20px; }
.el-map-wrap figcaption > span { display: inline-flex; align-items: center; gap: 8px; }
.el-map-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #D9AC4C; }
.el-map-dot--base { background: #F7DF92; }
@media (max-width: 781px) { .el-map text { font-size: 20px; } }
