/*
Theme Name: LubbockBugman - ChemTec Pest Control
Theme URI: https://lubbockbugman.com
Author: ChemTec Pest Control
Description: Fast, accessible, SEO- and AI-search-optimized classic theme for ChemTec Pest Control (LubbockBugman.com), Lubbock, TX. Includes schema.org LocalBusiness + FAQPage JSON-LD, an llms.txt endpoint, Open Graph tags and answer-first content structure.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
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: lubbockbugman
*/

:root {
	--ink: #11241d;
	--forest: #14352b;
	--forest-2: #1d4a3c;
	--sand: #f6efe0;
	--paper: #fffdf8;
	--rust: #c2410c;
	--rust-dark: #9a3412;
	--gold: #f0b83a;
	--line: #e4d9c0;
	--muted: #4d5a55;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(17, 36, 29, 0.12);
	--serif: Rockwell, "Roboto Slab", "Zilla Slab", Georgia, "Times New Roman", serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust-dark); text-underline-offset: 3px; }
a:hover { color: var(--rust); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(780px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.lead { font-size: 1.2rem; }
.screen-reader-text, .skip-link:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 0.6rem 1rem; border-radius: 8px; }

/* Buttons */
.btn {
	display: inline-block; padding: 0.85rem 1.5rem; border-radius: 999px; font-weight: 700;
	text-decoration: none; border: 2px solid transparent; line-height: 1.2; transition: transform 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--rust); color: #fff; }
.btn-primary:hover { background: var(--rust-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-ghost-dark { border-color: var(--forest); color: var(--forest); }
.btn-ghost-dark:hover { background: var(--forest); color: #fff; }
.btn-call { background: var(--gold); color: var(--ink); padding: 0.6rem 1.1rem; }
.btn-call:hover { background: #ffc94d; color: var(--ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--forest); color: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--gold); color: var(--ink); font-family: var(--serif); font-weight: 800; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.brand-sub { font-size: 0.75rem; opacity: 0.8; letter-spacing: 0.04em; }
.custom-logo { max-height: 48px; width: auto; }
.primary-nav { display: flex; align-items: center; gap: 1.25rem; }
.nav-list, .footer-list, .social, .awards, .card-grid { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; gap: 1.25rem; }
.nav-list a { color: #fff; text-decoration: none; font-weight: 600; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.nav-list a:hover, .nav-list .current-menu-item a { border-bottom-color: var(--gold); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 0.6rem; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 24px; height: 2px; background: #fff; position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -7px; }
.nav-toggle-bars::after { position: absolute; top: 7px; }

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--forest); padding: 1rem 1.25rem 1.5rem; gap: 1rem; }
	.primary-nav.is-open { display: flex; }
	.nav-list { flex-direction: column; gap: 0.25rem; }
	.nav-list a { display: block; padding: 0.7rem 0; }
	.btn-call { text-align: center; }
}

/* Hero */
.hero {
	color: #fff;
	background:
		radial-gradient(circle at 85% 20%, rgba(240, 184, 58, 0.22), transparent 45%),
		radial-gradient(circle at 10% 90%, rgba(194, 65, 12, 0.3), transparent 40%),
		linear-gradient(135deg, var(--forest) 0%, var(--forest-2) 100%);
	padding: clamp(3.5rem, 9vw, 7rem) 0;
}
.hero-inner { max-width: 860px; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 1rem; }
.hero h1 { margin-bottom: 0.4em; }
.hero-lead { font-size: clamp(1.15rem, 2.4vw, 1.5rem); max-width: 40ch; }
.hero-award { display: inline-block; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25); padding: 0.55rem 1rem; border-radius: 10px; font-size: 0.98rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Answer block */
.answer { background: var(--sand); }
.answer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.facts { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0.5rem 1.5rem; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px dashed var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-weight: 700; color: var(--forest); }
.facts dd { margin: 0; text-align: right; }

/* Proof */
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.proof-photo { margin: 0; }
.proof-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.awards { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.5rem; }
.awards li { background: var(--forest); color: #fff; border-radius: 999px; padding: 0.35rem 0.9rem; font-size: 0.92rem; font-weight: 600; }
.award-img { margin-top: 1.5rem; max-width: 380px; border-radius: 10px; }

/* Services */
.services { background: var(--paper); }
.section-lead { max-width: 62ch; color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 14px rgba(17, 36, 29, 0.06); display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 1.25rem 1.4rem 1.5rem; }
.card h3 { margin-bottom: 0.4em; color: var(--forest); }
.card p { margin: 0; color: var(--muted); }

/* Termites */
.termites { background: var(--forest); color: #fff; }
.termites a { color: var(--gold); }
.termite-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.termite-logo { background: #fff; border-radius: var(--radius); padding: 1.5rem; width: 100%; }

/* FAQ */
.faq { background: var(--sand); }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 0.75rem; padding: 0 1.25rem; }
.faq-item summary { cursor: pointer; list-style: none; padding: 1rem 0; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.1rem; font-family: var(--sans); font-weight: 700; }
.faq-item summary::after { content: "+"; font-size: 1.6rem; color: var(--rust); line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: 1rem; margin: 0; color: var(--muted); }
.faq-more { margin-top: 1.5rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.contact-card { font-style: normal; background: var(--forest); color: #fff; border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.contact-card a { color: var(--gold); }
.contact-card p { margin-bottom: 0.6em; }
.footer-h { font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; color: var(--gold); margin-bottom: 0.8rem; }

/* Footer */
.site-footer { background: var(--ink); color: #d9e2dd; padding-top: 3rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { font-family: var(--serif); font-size: 1.4rem; color: #fff; margin-bottom: 0.2rem; }
.footer-tag { opacity: 0.8; }
.footer-contact { font-style: normal; }
.footer-contact p { margin-bottom: 0.4em; }
.social { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.footer-list li { margin-bottom: 0.4em; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 2.5rem; padding: 1.25rem 0 5rem; font-size: 0.9rem; opacity: 0.85; }
.footer-base p { margin: 0; }

/* Mobile tap-to-call bar */
.call-bar { display: none; }

/* Posts and pages */
.entry h1 { margin-bottom: 0.3em; }
.entry-content { font-size: 1.1rem; }
.entry-content img { border-radius: 10px; }
.entry-img { border-radius: var(--radius); margin: 1rem 0 1.5rem; }
.meta { color: var(--muted); font-size: 0.92rem; }
.entry-cta { margin-top: 2.5rem; padding: 1.5rem; background: var(--sand); border-radius: var(--radius); }
.post-summary { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }

@media (max-width: 860px) {
	.answer-grid, .proof-grid, .termite-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
	.call-bar {
		display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; text-align: center;
		background: var(--rust); color: #fff; font-weight: 800; padding: 0.95rem 1rem; text-decoration: none;
		box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
	}
	.call-bar:hover { color: #fff; background: var(--rust-dark); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.btn { transition: none; }
}
