/*
Theme Name: Crystal Lake Electrician Singlepage
Theme URI: https://schedulemytext.com/
Author: Site Owner
Description: SEO-first single-page WordPress theme for an electrician in Crystal Lake, Illinois.
Version: 1.2.2
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: crystal-lake-electrician
*/

:root {
	--clh-navy: #102a43;
	--clh-night: #171526;
	--clh-blue: #0e7490;
	--clh-yellow: #f7c948;
	--clh-yellow-dark: #d7a918;
	--clh-white: #ffffff;
	--clh-soft: #f2f5f8;
	--clh-text: #26384a;
	--clh-muted: #637487;
	--clh-line: #dbe3ea;
	--clh-success: #146c43;
	--clh-error: #a51d2d;
	--clh-radius: 8px;
	--clh-shadow: 0 22px 60px rgba(16, 42, 67, 0.14);
	--clh-container: 1180px;
	--clh-section: clamp(4.5rem, 8vw, 7.25rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--clh-text); background: var(--clh-white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.7; }
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--clh-navy); font-weight: 850; line-height: 1.08; letter-spacing: -0.035em; }
h1 { max-width: 12ch; margin-bottom: 1.4rem; color: var(--clh-white); font-size: clamp(2.8rem, 4.8vw, 4.5rem); text-transform: uppercase; }
h2 { margin-bottom: 1.25rem; font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { margin-bottom: 0.7rem; font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin-bottom: 1.25rem; }
.site-container { width: min(calc(100% - 2.5rem), var(--clh-container)); margin-inline: auto; }
.section { padding-block: var(--clh-section); }
.section--soft { background: var(--clh-soft); }
.section--dark { color: #d8d4e0; background: var(--clh-night); }
.section--dark h2, .section--dark h3 { color: var(--clh-white); }
.eyebrow { margin-bottom: 0.85rem; color: var(--clh-blue); font-size: 0.74rem; font-weight: 850; letter-spacing: 0.22em; text-transform: uppercase; }
.section--dark .eyebrow { color: var(--clh-yellow); }
.skip-link { position: fixed; z-index: 10000; top: 1rem; left: 1rem; padding: 0.75rem 1rem; color: var(--clh-white); background: var(--clh-night); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.utility-bar { color: #dbd6e5; background: var(--clh-night); font-size: 0.82rem; }
.utility-bar__inner { display: flex; min-height: 54px; align-items: center; gap: 2rem; }
.utility-bar p { margin: 0; }
.utility-bar p:first-child { font-weight: 750; }
.utility-bar p:first-child span { color: var(--clh-yellow); }
.utility-bar a { margin-left: auto; color: var(--clh-white); font-weight: 800; text-underline-offset: 0.2em; }

.site-header { position: sticky; z-index: 50; top: 0; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid rgba(16, 42, 67, 0.08); backdrop-filter: blur(14px); }
.site-header__inner { display: flex; min-height: 84px; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.8rem; color: var(--clh-navy); text-decoration: none; }
.brand__mark { position: relative; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; background: var(--clh-yellow); }
.brand__mark::before, .brand__mark::after, .brand__mark i { content: ""; position: absolute; left: 50%; width: 3px; height: 8px; border-radius: 2px; background: var(--clh-night); transform-origin: 50% 21px; }
.brand__mark::before { top: 2px; transform: translateX(-50%); }
.brand__mark::after { bottom: 2px; transform: translateX(-50%) rotate(180deg); }
.brand__mark i { top: 2px; transform: translateX(-50%) rotate(60deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: clamp(1rem, 2vw, 1.18rem); font-weight: 900; letter-spacing: -0.025em; text-transform: uppercase; }
.brand__text small { margin-top: 0.25rem; color: var(--clh-muted); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.2vw, 1.8rem); }
.primary-nav > a { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.07em; text-decoration: none; text-transform: uppercase; }
.primary-nav > a:not(.button):hover { color: var(--clh-blue); }
.menu-toggle { display: none; width: 48px; height: 48px; padding: 11px; border: 0; color: var(--clh-navy); background: transparent; }
.menu-toggle i { display: block; height: 2px; margin: 5px 0; background: currentColor; }

.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.55rem; border: 2px solid var(--clh-yellow); border-radius: 999px; color: var(--clh-night); background: var(--clh-yellow); font-size: 0.77rem; font-weight: 900; letter-spacing: 0.08em; line-height: 1.2; text-align: center; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.button:hover { border-color: var(--clh-yellow-dark); background: var(--clh-yellow-dark); transform: translateY(-2px); }
.button--small { min-height: 42px; padding: 0.65rem 1.1rem; }
.button--dark { border-color: var(--clh-night); color: var(--clh-white); background: var(--clh-night); }
.button--dark:hover { border-color: var(--clh-navy); background: var(--clh-navy); }
.button--full { width: 100%; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem; }
.text-link { color: var(--clh-navy); font-weight: 800; text-underline-offset: 0.22em; }
.text-link--light { color: var(--clh-white); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #ffdd66; outline-offset: 3px; }

.hero { position: relative; min-height: 780px; display: grid; align-items: center; overflow: hidden; }
.hero__image, .hero__overlay { position: absolute; inset: 0; }
.hero__image { background: var(--clh-hero-image, url("assets/images/electrician-panel.jpg")) 35% center / cover no-repeat; }
.hero__overlay { background: linear-gradient(90deg, rgba(23, 21, 38, 0.88), rgba(23, 21, 38, 0.72) 52%, rgba(23, 21, 38, 0.84)); }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(430px, 0.78fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.hero__content { width: auto; }
.hero__lede { max-width: 31ch; margin-bottom: 2rem; color: var(--clh-white); font-size: clamp(1.18rem, 2.1vw, 1.65rem); line-height: 1.42; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin: 2rem 0 0; padding: 0; color: #d6d1dc; font-size: 0.82rem; font-weight: 700; list-style: none; }
.hero__trust li::before { content: "✓"; margin-right: 0.45rem; color: var(--clh-yellow); }
.hero__form { width: 100%; max-width: 540px; justify-self: end; padding: clamp(1.5rem, 2.5vw, 2.35rem); }
.section--dark .hero__form h2 { margin-bottom: 0.65rem; color: var(--clh-navy); font-size: clamp(1.7rem, 2.6vw, 2.35rem); }
.hero__form .eyebrow { margin-bottom: 0.45rem; }
.hero__form-intro { margin-bottom: 1rem; color: var(--clh-muted); font-size: 0.9rem; line-height: 1.5; }
.hero__form .field { margin-bottom: 0.7rem; }
.hero__form .field input, .hero__form .field select { min-height: 46px; }
.hero__form .field textarea { min-height: 76px; }
.hero__form .consent { margin-bottom: 0.8rem; }

.split-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.section-intro > p:not(.eyebrow), .section-heading > p:not(.eyebrow) { max-width: 64ch; color: var(--clh-muted); }
.section-heading { margin-bottom: 3rem; }
.section-heading--center { text-align: center; }
.section-heading--center > p { margin-inline: auto; }
.number-list { margin: 0; padding: 0; list-style: none; counter-reset: problem; }
.number-list li { display: grid; grid-template-columns: 70px 1fr; gap: 1.2rem; padding: 1.45rem 0; border-bottom: 1px solid var(--clh-line); counter-increment: problem; }
.number-list li::before { content: counter(problem); color: #91a1b4; font-size: 3rem; font-weight: 300; line-height: 1; }
.number-list p { margin: 0; color: var(--clh-muted); }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service-card { min-height: 350px; display: flex; flex-direction: column; padding: clamp(1.8rem, 3.3vw, 2.7rem); color: #c9c4d2; background: var(--clh-night); box-shadow: var(--clh-shadow); }
.service-card > span { display: grid; width: 58px; height: 58px; place-items: center; margin-bottom: auto; border: 2px solid var(--clh-yellow); border-radius: 50%; color: var(--clh-yellow); font-weight: 900; }
.service-card h3 { margin-top: 2rem; color: var(--clh-white); }
.service-card p { flex-grow: 1; }
.service-card a { color: var(--clh-yellow); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.08em; text-decoration: none; text-transform: uppercase; }

.proof-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.8rem, 7vw, 6rem); align-items: center; }
.proof-image { position: relative; padding: 0 1.5rem 1.5rem 0; }
.proof-image::after { content: ""; position: absolute; z-index: -1; right: 0; bottom: 0; width: 45%; height: 45%; background: var(--clh-yellow); }
.proof-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.proof-image__label { position: absolute; right: 0; bottom: 0; width: min(76%, 390px); padding: 1.25rem 1.4rem; color: var(--clh-white); background: var(--clh-night); box-shadow: var(--clh-shadow); }
.proof-image__label strong, .proof-image__label span { display: block; }
.proof-image__label span { margin-top: 0.3rem; color: #bdb7c8; font-size: 0.78rem; }
.check-list { margin: 2rem 0; padding: 0; list-style: none; }
.check-list li { position: relative; margin-bottom: 0.8rem; padding-left: 1.8rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--clh-blue); font-weight: 900; }
.notice-card { padding: 1.1rem 1.25rem; border-left: 4px solid var(--clh-yellow); background: var(--clh-soft); font-size: 0.9rem; }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; padding: 0; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.14); list-style: none; }
.process-grid li { padding: clamp(2rem, 4vw, 3.25rem); background: var(--clh-night); }
.process-grid li > span { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 2rem; border-radius: 50%; color: var(--clh-night); background: var(--clh-yellow); font-weight: 900; }
.process-grid p { margin: 0; color: #aaa4b4; }

.quote-section { background: linear-gradient(135deg, #eef3f6, #ffffff); }
.quote-layout { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.quote-copy { position: sticky; top: 125px; }
.call-card { margin-top: 2rem; padding: 1.5rem; color: var(--clh-white); background: var(--clh-navy); }
.call-card span, .call-card a { display: block; }
.call-card span { color: #c9d4de; font-size: 0.75rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.call-card a { margin-top: 0.25rem; color: var(--clh-white); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; }
.form-card { padding: clamp(2rem, 5vw, 3.5rem); background: var(--clh-white); box-shadow: var(--clh-shadow); }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: 0.35rem; color: var(--clh-navy); font-size: 0.82rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 0.8rem 0.9rem; border: 1px solid #a8b5c2; border-radius: 4px; color: var(--clh-text); background: var(--clh-white); }
.field textarea { resize: vertical; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 0.7rem; margin: 0.5rem 0 1rem; color: var(--clh-muted); font-size: 0.8rem; line-height: 1.45; }
.consent input { width: 18px; height: 18px; margin-top: 0.1rem; accent-color: var(--clh-blue); }
.form-note { margin: 0.9rem 0 0; color: var(--clh-muted); font-size: 0.76rem; line-height: 1.5; }
.form-alert { margin-bottom: 1.2rem; padding: 1rem 1.1rem; border-left: 4px solid; }
.form-alert--success { color: var(--clh-success); background: #eaf7f0; border-color: var(--clh-success); }
.form-alert--error { color: var(--clh-error); background: #fff0f2; border-color: var(--clh-error); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.faq-layout { display: grid; grid-template-columns: 0.76fr 1.24fr; gap: clamp(3rem, 7vw, 6rem); }
.faq-list details { border-bottom: 1px solid var(--clh-line); }
.faq-list summary { padding: 1.3rem 2.5rem 1.3rem 0; color: var(--clh-navy); font-weight: 820; cursor: pointer; }
.faq-list details p { padding-right: 2rem; color: var(--clh-muted); }
.closing-cta { padding-block: clamp(3rem, 5vw, 4.75rem); background: var(--clh-yellow); }
.closing-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.closing-cta h2 { max-width: 20ch; margin: 0; }
.closing-cta .eyebrow { color: var(--clh-night); }
.privacy-strip { padding-block: 2rem; color: #63717f; background: #e9eef2; font-size: 0.78rem; }
.privacy-strip h2 { margin-bottom: 0.5rem; font-size: 1rem; }
.privacy-strip p { margin: 0; }

.site-footer { padding-top: 4rem; color: #aaa4b4; background: var(--clh-night); }
.site-footer__grid { display: grid; grid-template-columns: 1.45fr 0.7fr 1fr; gap: 3rem; }
.site-footer__grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; }
.site-footer h2 { margin: 0 0 0.7rem; color: var(--clh-white); font-size: 1rem; }
.site-footer a { color: #ded9e4; }
.footer-contact { display: grid; gap: 1rem; width: 100%; margin: 0 0 1rem; padding: 0; list-style: none; }
.footer-contact li { display: grid; grid-template-columns: 36px 1fr; gap: 0.75rem; align-items: start; }
.footer-contact__icon { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(247, 201, 72, 0.45); border-radius: 50%; color: var(--clh-yellow); font-size: 0.88rem; font-weight: 900; }
.footer-contact li > span:last-child { min-width: 0; color: #d8d3df; line-height: 1.45; overflow-wrap: anywhere; }
.footer-contact small { display: block; margin-bottom: 0.15rem; color: #8f899a; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.footer-contact a { text-underline-offset: 0.2em; }
.brand--light { margin-bottom: 1rem; color: var(--clh-white); }
.brand--light .brand__text small { color: #aaa4b4; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 2rem; margin-top: 3rem; padding-block: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.76rem; }
.site-footer__bottom p { margin: 0; }
.content-page { min-height: 60vh; padding-block: var(--clh-section); }
.content-page__inner { max-width: 820px; }
.content-page h1 { max-width: none; color: var(--clh-navy); font-size: clamp(2.4rem, 5vw, 4.2rem); }

@media (min-width: 981px) {
	.hero h1 { font-size: clamp(2.7rem, 3.6vw, 3.9rem); }
}

@media (max-width: 980px) {
	body.admin-bar .site-header { top: 46px; }
	.primary-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.25rem 1.4rem; background: var(--clh-white); box-shadow: var(--clh-shadow); }
	.primary-nav.is-open { display: flex; }
	.primary-nav > a { padding: 0.85rem; }
	.menu-toggle { display: block; }
	.hero { min-height: auto; }
	.hero__overlay { background: rgba(23, 21, 38, 0.86); }
	.hero__inner { grid-template-columns: 1fr; }
	.hero__content { width: min(100%, 680px); }
	.hero__form { max-width: 680px; justify-self: start; }
	.split-grid, .proof-grid, .quote-layout, .faq-layout { grid-template-columns: 1fr; }
	.quote-copy { position: static; }
	.service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
	:root { --clh-section: 4rem; }
	.site-container { width: min(calc(100% - 2rem), var(--clh-container)); }
	.utility-bar__inner { min-height: 66px; gap: 0.8rem; }
	.utility-bar p:nth-child(2) { display: none; }
	.utility-bar a { font-size: 0.75rem; }
	.site-header__inner { min-height: 72px; }
	.brand__mark { width: 36px; height: 36px; flex-basis: 36px; }
	.brand__text small { display: none; }
	.hero { min-height: auto; align-items: end; }
	.hero__image { background-position: 42% center; }
	.hero__overlay { background: linear-gradient(0deg, rgba(23, 21, 38, 0.97), rgba(23, 21, 38, 0.25)); }
	.hero__inner { padding-block: 3.5rem; }
	.hero__content { width: 100%; }
	.button-row { align-items: flex-start; flex-direction: column; }
	.hero__trust { flex-direction: column; }
	.number-list li { grid-template-columns: 50px 1fr; }
	.service-grid, .process-grid, .field-grid, .site-footer__grid { grid-template-columns: 1fr; }
	.service-card { min-height: 320px; }
	.proof-image { padding: 0 0.85rem 0.85rem 0; }
	.proof-image__label { position: relative; width: calc(100% - 1rem); margin: -2rem 0 0 auto; }
	.closing-cta__inner, .site-footer__bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
