/*
Theme Name: Chimney Champs
Theme URI: https://chimneychampsusa.com
Description: Fast, SEO-first local service theme for Chimney Champs — service, location and guide pages with schema, sitemap, llms.txt, lead form and visitor-location personalization.
Version: 1.0.1
Requires PHP: 7.4
Text Domain: chimney-champs
*/

:root {
	--ink: #1f1b17;
	--ink-2: #4a423b;
	--muted: #75695e;
	--cream: #faf6f0;
	--sand: #f1e9de;
	--line: #e3d8c9;
	--fire: #d94f1a;
	--fire-dark: #b63f12;
	--ember: #f3a03b;
	--white: #fff;
	--radius: 14px;
	--shadow: 0 10px 30px -12px rgba(31, 27, 23, .25);
	--serif: "Fraunces", Georgia, serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, 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: 17px; line-height: 1.65; color: var(--ink); background: var(--white); }
img, iframe { max-width: 100%; }
a { color: var(--fire-dark); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.18em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--white); padding: 8px 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.35em; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.2; transition: transform .15s, background .15s; font-family: var(--sans); }
.btn:hover { transform: translateY(-1px); }
.btn-fire, .btn-call { background: var(--fire); color: var(--white); }
.btn-fire:hover, .btn-call:hover { background: var(--fire-dark); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-block { width: 100%; }
.link { font-weight: 600; text-decoration: none; display: inline-flex; gap: .35em; align-items: center; }

/* Geo bar */
.geo-bar { background: var(--ink); color: #f6e9d8; font-size: .92rem; padding: 8px 0; }
.geo-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; }
.geo-bar .ic { color: var(--ember); }
.geo-bar a { color: var(--ember); font-weight: 600; text-decoration: none; margin-left: auto; display: inline-flex; gap: .3em; align-items: center; }

/* Header */
.site-head { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--fire); color: var(--white); display: grid; place-items: center; }
.brand-mark .ic { width: 26px; height: 26px; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.brand-name b { color: var(--fire); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 10px 12px; border-radius: 8px; display: block; }
.nav a:hover { background: var(--sand); }
.nav-item { position: relative; }
.sub { display: none; position: absolute; top: 100%; left: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; min-width: 230px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.head-call { padding: .7em 1.1em; }
.nav-toggle { display: none; margin-left: auto; background: var(--sand); border: 0; border-radius: 8px; padding: 10px 14px; font-weight: 600; font-size: 1rem; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #fde1c2 0%, transparent 60%), var(--cream); padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: .45em; background: var(--white); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--ink-2); }
.eyebrow .ic { color: var(--fire); }
.accent { color: var(--fire); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 22px; margin-top: 28px; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item .ic { width: 28px; height: 28px; color: var(--fire); margin-top: 2px; }
.trust-item strong { display: block; }
.trust-item span { color: var(--muted); font-size: .93rem; }

/* Quote form */
.quote { background: var(--white); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); border: 1px solid var(--line); scroll-margin-top: 90px; }
.quote-title { font-size: 1.55rem; margin-bottom: .2em; }
.quote-sub { color: var(--fire-dark); font-weight: 600; font-size: .93rem; }
.quote label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
.quote input, .quote select, .quote textarea { width: 100%; margin-top: 4px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 1rem; background: var(--cream); color: var(--ink); }
.quote input:focus, .quote select:focus, .quote textarea:focus { outline: none; border-color: var(--fire); background: var(--white); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; }
.form-note { text-align: center; font-size: .92rem; margin: 12px 0 0; color: var(--muted); }
.form-err { background: #fde8e1; color: #8a2a08; padding: 10px 12px; border-radius: 8px; font-size: .93rem; }

/* Sections */
.sec { padding: 72px 0; }
.sec-alt { background: var(--cream); }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--fire); margin-bottom: .5em; }
.sec-title { margin-bottom: 1.2em; max-width: 24ch; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.card:hover { border-color: var(--fire); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-ic { width: 48px; height: 48px; border-radius: 12px; background: #fde9da; color: var(--fire); display: grid; place-items: center; margin-bottom: 14px; }
.card-ic .ic { width: 26px; height: 26px; }
.card p { color: var(--ink-2); font-size: .95rem; flex: 1; }
.more { font-weight: 600; color: var(--fire-dark); font-size: .92rem; display: inline-flex; gap: .35em; align-items: center; }

.process { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.process li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 14px 70px; position: relative; }
.process h3 { margin-bottom: .2em; }
.process p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.num { position: absolute; left: 20px; top: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font-weight: 700; }

.areas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.area h3 a { color: var(--ink); text-decoration: none; }
.area ul { list-style: none; padding: 0; margin: 0; }
.area li a { display: block; padding: 4px 0; color: var(--ink-2); text-decoration: none; }
.area li a:hover { color: var(--fire); }
.geo-near { background: #fde9da; border: 1px solid #f6c9a8; border-radius: 12px; padding: 14px 18px; margin: 0 0 24px; }
.geo-near a { color: var(--fire-dark); text-decoration: none; }

.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-bottom: 20px; }
.guide-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.guide-card .ic { color: var(--fire); width: 26px; height: 26px; }
.guide-card h3 { margin: 6px 0 0; }
.guide-card p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.guide-card span { color: var(--muted); font-size: .85rem; margin-top: auto; }
.guide-card:hover { border-color: var(--fire); }

/* FAQ */
.faq-block { margin: 2em 0; }
.faq-block details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-block summary { cursor: pointer; font-weight: 600; padding: 14px 32px 14px 0; list-style: none; position: relative; }
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--fire); }
.faq-block details[open] summary::after { content: "–"; }
.faq-block details p { color: var(--ink-2); padding-bottom: 8px; }

/* CTA band */
.cta-band { background: var(--ink); color: var(--white); padding: 52px 0; background-image: radial-gradient(600px 300px at 90% 120%, rgba(217,79,26,.45), transparent 70%); }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: var(--white); margin-bottom: .2em; }
.cta-band p { color: #e6d6c3; margin: 0; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Inner pages */
.page-head { background: var(--cream); padding: 40px 0 44px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.meta { color: var(--muted); font-size: .93rem; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.sticky { position: sticky; top: 96px; }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--sand); }
.prose .cards { margin: 1em 0; }
.answer { background: #fff7ef; border: 1px solid #f6c9a8; border-left: 5px solid var(--fire); border-radius: 12px; padding: 18px 20px; margin-bottom: 1.5em; }
.answer-label { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--fire-dark); margin-bottom: 4px; }
.answer p { margin: 0; font-size: 1.05rem; }
.ticks { list-style: none; padding: 0 !important; }
.ticks li { display: flex; gap: 10px; }
.ticks .ic { color: var(--fire); margin-top: 4px; }
.steps li::marker { color: var(--fire); font-weight: 700; }
.towns { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 16px; }
.towns li { display: flex; gap: 6px; align-items: center; }
.towns .ic { color: var(--fire); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin: 1.5em 0; }
.map iframe { display: block; width: 100%; height: 320px; border: 0; }
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 1em 0; }
.loc-card { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--white); }
.loc-card .ic { color: var(--fire); margin-top: 3px; }
.loc-card small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.loc-card:hover { border-color: var(--fire); }
.loc-links { line-height: 2; }
.state-block { margin-bottom: 48px; }
.state-block h2 a { color: var(--ink); text-decoration: none; }
.callout { background: var(--cream); border-radius: var(--radius); padding: 22px 24px; margin: 2em 0; }
.callout h2 { margin-top: 0; }
.contact-list { list-style: none; padding: 0 !important; font-size: 1.1rem; }
.contact-list li { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.contact-list .ic { color: var(--fire); }

/* Footer */
.site-foot { background: #171411; color: #cfc3b5; padding: 56px 0 90px; font-size: .95rem; }
.site-foot a { color: #e9ddcf; text-decoration: none; }
.site-foot a:hover { color: var(--ember); }
.site-foot h3 { color: var(--white); font-family: var(--sans); font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { padding: 3px 0; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 40px; }
.brand-light { color: var(--white); margin-bottom: 14px; }
.foot-phone { font-size: 1.3rem; font-weight: 700; color: var(--ember) !important; }
.foot-areas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; border-top: 1px solid #2f2a25; margin-top: 40px; padding-top: 32px; font-size: .88rem; }
.foot-legal { border-top: 1px solid #2f2a25; margin-top: 32px; padding-top: 20px; font-size: .85rem; color: #8f8377; }
.mobile-cta { display: none; }

/* Responsive */
@media (max-width: 1000px) {
	.hero-grid, .two-col, .content-grid { grid-template-columns: 1fr; }
	.areas, .foot-areas { grid-template-columns: repeat(2, 1fr); }
	.foot-grid { grid-template-columns: 1fr; }
	.sticky { position: static; }
}
@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.head-call { display: none; }
	.nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
	.nav.open { display: flex; }
	.sub { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
	.sub a { font-size: .95rem; color: var(--ink-2); padding: 6px 12px; }
	.mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; bottom: 0; left: 0; right: 0; padding: 10px 12px; background: var(--ink); z-index: 50; }
	.mobile-cta .btn { padding: .8em; }
	body { font-size: 16px; }
	.sec { padding: 52px 0; }
}
@media (max-width: 520px) {
	.f-row, .trust { grid-template-columns: 1fr; }
	.areas, .foot-areas { grid-template-columns: 1fr; }
	.quote { padding: 20px; }
	.geo-bar a { margin-left: 0; }
	.geo-bar .wrap > .ic { display: none; }
}
