/*
Theme Name: HBC
Theme URI: https://housebuyingcompanies.com/
Author: House Buying Companies
Description: Lightweight theme for the House Buying Companies directory. Pairs with the HBC Directory plugin.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: hbc
*/

:root {
	--navy: #0f2a44;
	--navy-2: #173a5c;
	--amber: #f2a51a;
	--teal: #0d6e6e;
	--band: #e8f2f3;
	--ink: #1d2733;
	--muted: #5b6876;
	--line: #dbe3ea;
	--card: #f6f8fa;
	--radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 17px; line-height: 1.6; color: var(--ink); background: #fff; overflow-wrap: break-word; }
img, iframe { max-width: 100%; }
a { color: var(--teal); }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 3.5vw, 1.7rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 18px; }
.block { padding-top: 28px; padding-bottom: 28px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 10; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* Header */
.site-head { background: var(--navy); color: #fff; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.logo { color: #fff; font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.logo span { color: var(--amber); }
.nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
.btn { display: inline-block; background: var(--amber); color: var(--navy) !important; border: 0; border-radius: 8px; padding: 10px 18px; font-weight: 700; text-decoration: none; cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn:hover { background: #ffb933; }
.btn-sm { padding: 7px 12px; font-size: .9rem; }
.btn-ghost { background: transparent; border: 2px solid var(--navy); }

/* Hero and page heads */
.hero { background: var(--navy); color: #fff; padding: 48px 0 40px; text-align: center; }
.hero h1 { color: #fff; }
.hero .lede { max-width: 640px; margin: 0 auto 22px; color: #d7e2ec; }
.jump { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.jump label { position: absolute; left: -999px; }
.jump select { font: inherit; padding: 10px 12px; border-radius: 8px; border: 0; min-width: 0; width: 260px; max-width: 100%; }
.stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; color: #c9d6e2; font-size: .9rem; }
.stats strong { color: #fff; font-size: 1.2rem; margin-right: 4px; }
.pagehead { background: var(--band); padding: 22px 0 18px; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 4px; font-size: .88rem; }
.crumbs li + li::before { content: "\203A"; margin-right: 4px; color: var(--muted); }
.chips { list-style: none; padding: 0; margin: 0 0 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.chips li { background: #fff; border-radius: 999px; padding: 4px 12px; font-size: .88rem; font-weight: 600; }
.updated { font-size: .85rem; color: var(--muted); margin: 0; }
.prose { max-width: 780px; }
.intro p { margin-bottom: .9em; }
.band { background: var(--band); }

/* Cards */
.group-label { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-size: .8rem; margin: 18px 0 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; }
.card h3 { margin: 6px 0 4px; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: 0 0 8px; font-size: .94rem; }
.card .desc { color: #3a4654; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: .75rem; font-weight: 700; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; color: var(--navy-2); }
.rating .star { color: #d98e04; }
.card-actions { margin-top: auto !important; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; padding-top: 6px; }
.card-actions a { font-weight: 700; }
.phone { color: var(--navy); }
.note { font-size: .88rem; color: var(--muted); margin-top: 14px; }

/* Grids */
.grid-states, .grid-cities { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.grid-states a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; text-decoration: none; }
.grid-states strong { display: block; color: var(--navy); }
.grid-states span { font-size: .85rem; color: var(--muted); }
.grid-cities li { padding: 4px 0; border-bottom: 1px solid var(--line); }
.browse { columns: 3 260px; column-gap: 28px; }
.browse-state { break-inside: avoid; margin-bottom: 18px; }
.browse-state h2 { font-size: 1.1rem; border-bottom: 2px solid var(--navy); padding-bottom: 4px; }
.browse-state ul { list-style: none; padding: 0; margin: 0; font-size: .93rem; }

/* Facts, FAQ, CTA */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; margin: 0 0 10px; }
.facts div { background: #fff; border-radius: 8px; padding: 12px; }
.facts dt { font-size: .82rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; color: var(--navy); }
.faq h3 { margin-top: 1.2em; }
.cta { background: var(--amber); border-radius: var(--radius); padding: 20px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin: 20px 0 36px; }
.cta p { margin: 0; }
.cta .btn { background: var(--navy); color: #fff !important; }
.claim { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--band); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; }
.claim p { margin: 0; }

/* Company */
.company-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 860px) { .company-grid { grid-template-columns: 1fr 320px; } }
.facts-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; align-self: start; }
.facts-box dt { font-size: .82rem; color: var(--muted); }
.facts-box dd { margin: 0 0 10px; font-weight: 600; }
.out { font-weight: 700; }

/* Map */
.hbc-map { width: 100%; height: 380px; background: #dfe8ee; border-radius: var(--radius); overflow: hidden; position: relative; }
.hbc-map iframe { border: 0; width: 100%; height: 100%; display: block; }
.map-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; color: var(--muted); }
.iw { font-size: .9rem; line-height: 1.4; }
@media (max-width: 600px) { .hbc-map { height: 300px; } }

/* Forms */
.hbc-form { max-width: 620px; }
.hbc-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.hbc-form input, .hbc-form textarea, .hbc-form select { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #b8c4cf; border-radius: 8px; background: #fff; }
.hbc-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice-ok { background: #e4f5ea; border: 1px solid #9fd3b1; border-radius: var(--radius); padding: 16px; }
.notice-err { background: #fdecec; border: 1px solid #f0b0b0; border-radius: var(--radius); padding: 10px 16px; }

/* Footer */
.site-foot { background: var(--navy); color: #c9d6e2; padding: 28px 0; font-size: .9rem; }
.site-foot a { color: #fff; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; }
.disclosure { margin: 0 0 6px; }
.copy { margin: 0; color: #9fb2c4; }
