/*
Theme Name: Dumpster Broker
Description: Multi-location theme for broker-style dumpster rental, junk removal and jobsite delivery. Built to pair with the Dumpster Broker Quote System plugin.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Author: Dani
Text Domain: dbt
License: GPL-2.0-or-later
*/

/* ------------------------------------------------------------------
   Tokens
   ------------------------------------------------------------------ */
:root {
	--asphalt: #1c2326;
	--steel: #24404f;
	--steel-deep: #1a3140;
	--safety: #f2b705;
	--safety-deep: #d9a300;
	--concrete: #e4e6e3;
	--white: #ffffff;
	--muted: #55636b;
	--line: #c9cec9;

	--wrap: 1160px;
	--gutter: 20px;
	--radius: 6px;

	--font: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--step--1: .875rem;
	--step-0: 1.0625rem;
	--step-1: 1.25rem;
	--step-2: 1.5rem;
	--step-3: 2rem;
	--step-4: clamp(2.25rem, 5.2vw, 3.75rem);

	/* Plugin hand-off */
	--dbq-accent: var(--safety);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--white);
	color: var(--asphalt);
	font-family: var(--font);
	font-size: var(--step-0);
	font-variation-settings: "wdth" 100;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--steel); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--asphalt); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--safety); outline-offset: 2px; }

h1, h2, h3, h4 {
	margin: 0 0 .5em;
	line-height: 1.12;
	font-weight: 800;
	font-variation-settings: "wdth" 125;
	letter-spacing: -.01em;
	text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-variation-settings: "wdth" 112; }
p, ul, ol { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 100000;
	width: auto; height: auto; clip: auto;
	padding: 10px 14px; background: var(--safety); color: var(--asphalt);
}

.db-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------------
   Buttons (shared with plugin)
   ------------------------------------------------------------------ */
.db-btn, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 10px 22px;
	border: 2px solid var(--safety); border-radius: var(--radius);
	background: var(--safety); color: var(--asphalt);
	font-weight: 800; font-variation-settings: "wdth" 112;
	text-decoration: none; line-height: 1.1;
	white-space: nowrap;
}
.db-btn:hover, .wp-block-button__link:hover { background: var(--safety-deep); border-color: var(--safety-deep); color: var(--asphalt); text-decoration: none; }
.db-btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.db-btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: currentColor; color: inherit; }

/* Plugin overrides: safety-yellow buttons need dark text */
.dbq-btn, a.dbq-btn { color: var(--asphalt) !important; font-variation-settings: "wdth" 112; }
.dbq-progress-text { text-transform: none !important; letter-spacing: 0 !important; font-size: .85em !important; }
.dbq-callbar { background: var(--asphalt) !important; }
.dbq-callbar-call { color: var(--asphalt) !important; }
.dbq, .dbq-location { font-family: var(--font); }
.dbq-title, .dbq-step-title { font-variation-settings: "wdth" 118; font-weight: 800; }

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--white);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }

.site-header .db-wrap {
	display: flex; align-items: center; gap: 20px;
	min-height: 80px;
}
.site-brand {
	white-space: nowrap;
	display: flex; align-items: center; gap: 10px;
	color: var(--asphalt); text-decoration: none;
	font-weight: 900; font-variation-settings: "wdth" 125;
	font-size: 1.2rem; line-height: 1;
	margin-right: auto;
}
.site-brand:hover { color: var(--asphalt); text-decoration: none; }
.site-brand__logo { display: block; height: 66px; width: auto; max-width: 200px; object-fit: contain; }
@media (max-width: 600px) { .site-brand__logo { height: 48px; } }
.site-brand__mark {
	display: inline-block; width: 30px; height: 22px;
	background: var(--safety);
	clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%);
}

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.primary-nav li { position: relative; }
.primary-nav a {
	display: block; padding: 10px 10px;
	color: var(--asphalt); text-decoration: none;
	font-weight: 600; font-size: .96rem;
	white-space: nowrap;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { color: var(--steel); text-decoration: underline; text-decoration-thickness: 2px; }
.primary-nav .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 220px;
	display: none; flex-direction: column;
	padding: 6px 0; background: var(--white);
	border: 1px solid var(--line); border-top: 3px solid var(--safety);
	box-shadow: 0 10px 24px rgba(28, 35, 38, .12);
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: flex; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { color: var(--asphalt); font-weight: 800; text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--steel); }

.nav-toggle {
	display: none;
	min-height: 44px; padding: 8px 12px;
	background: transparent; border: 2px solid var(--asphalt); border-radius: var(--radius);
	color: var(--asphalt); font: inherit; font-weight: 700; cursor: pointer;
}

@media (max-width: 1560px) {
	.header-phone { display: none; }
}
@media (max-width: 1260px) {
	.nav-toggle { display: inline-flex; }
	.header-actions .db-btn { display: none; }
	.primary-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		display: none;
		background: var(--white); border-bottom: 1px solid var(--line);
		box-shadow: 0 12px 24px rgba(28, 35, 38, .12);
	}
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
	.primary-nav a { padding: 12px 0; border-bottom: 1px solid var(--concrete); }
	.primary-nav .sub-menu { position: static; display: flex; border: 0; box-shadow: none; padding: 0 0 0 14px; }
	.primary-nav .menu-cta { display: block; margin-top: 12px; }
	.primary-nav .menu-cta a { display: flex; border: 0; justify-content: center; background: var(--safety); border-radius: var(--radius); font-weight: 800; }
}
@media (min-width: 1261px) { .primary-nav .menu-cta { display: none; } }

/* ------------------------------------------------------------------
   Page shell
   ------------------------------------------------------------------ */
.page-head {
	background: var(--concrete);
	padding: 48px 0 40px;
	border-bottom: 1px solid var(--line);
}
.page-head h1 { margin: 0; max-width: 20ch; }
.page-head p { margin: 12px 0 0; max-width: 60ch; color: var(--muted); font-size: var(--step-1); }

.site-main { min-height: 50vh; }

/* Standard content column: everything readable, full-bleed blocks opt out */
.entry-content > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.entry-content > p, .entry-content > ul, .entry-content > ol,
.entry-content > h2, .entry-content > h3 { max-width: calc(760px + 2 * var(--gutter)); }
.entry-content > .db-full, .entry-content > .alignfull { max-width: none; padding-left: 0; padding-right: 0; }
.entry-content > .dbq { max-width: calc(860px); margin: 32px auto; }
@media (max-width: 900px) { .entry-content > .dbq { margin: 24px var(--gutter); } }
.page-body { padding: 40px 0 72px; }
.page-body--flush { padding-top: 0; }

/* ------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------ */
.db-section { padding: 72px 0; }
.db-section--concrete { background: var(--concrete); }
.db-section--steel { background: var(--steel); color: var(--white); }
.db-section--steel a:not(.db-btn) { color: var(--white); }
.db-section h2 { max-width: 22ch; }
.db-lede { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }
.db-section--steel .db-lede { color: #c9d6dd; }

/* Hero: the one loud element */
.db-hero {
	background: var(--steel);
	color: var(--white);
	padding: 64px 0 72px;
	position: relative;
	overflow: hidden;
}
.db-hero::after { /* hazard edge along the bottom, the only stripe on the site */
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
	background: repeating-linear-gradient(-45deg, var(--safety) 0 18px, var(--asphalt) 18px 36px);
}
.db-hero .db-wrap { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
@media (min-width: 960px) { .db-hero .db-wrap { grid-template-columns: 1.25fr .95fr; gap: 56px; } }
.db-hero h1 {
	font-size: clamp(2.5rem, 6.4vw, 4.6rem);
	font-weight: 900;
	line-height: .98;
	letter-spacing: -.02em;
	margin-bottom: 20px;
	max-width: 13ch;
}
.db-hero p { font-size: var(--step-1); color: #d3dee4; max-width: 46ch; }
.db-hero__facts { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--white); font-weight: 600; }
.db-hero__facts li { display: flex; align-items: center; gap: 8px; }
.db-hero__facts li::before { content: ""; width: 10px; height: 10px; background: var(--safety); }

/* Job ticket that holds the ZIP check */
.db-ticket {
	background: var(--safety);
	color: var(--asphalt);
	border-radius: var(--radius);
	padding: 26px 24px 22px;
	box-shadow: 10px 10px 0 var(--asphalt);
}
.db-ticket h2 { font-size: var(--step-2); margin-bottom: 6px; }
.db-ticket p { color: var(--asphalt); font-size: 1rem; margin-bottom: 12px; }
.db-ticket .dbq { background: transparent; border: 0; box-shadow: none; padding: 0; margin: 0; }
.db-ticket .dbq-label { display: none; }
.db-ticket .dbq-zip-row input { border-color: var(--asphalt); border-width: 2px; }
.db-ticket .dbq-btn { background: var(--asphalt) !important; color: var(--white) !important; }
.db-ticket .dbq-ok { color: var(--asphalt); }
.db-ticket .dbq-warn { color: var(--asphalt); font-weight: 600; }
.db-ticket .dbq-actions .dbq-btn { background: var(--asphalt) !important; }
.db-ticket .dbq-link { color: var(--asphalt); }
.db-ticket__alt { margin: 14px 0 0 !important; font-size: .95rem !important; }
.db-ticket__alt a { color: var(--asphalt); font-weight: 700; }

/* Two dumpster types, compared on the same rows */
.db-compare { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 1rem; background: var(--white); }
.db-compare th, .db-compare td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.db-compare thead th { font-size: var(--step-1); font-weight: 800; font-variation-settings: "wdth" 118; border-bottom: 3px solid var(--asphalt); }
.db-compare thead th a { color: var(--asphalt); }
.db-compare tbody th { width: 22%; color: var(--muted); font-weight: 600; }
@media (max-width: 640px) {
	.db-compare thead { display: none; }
	.db-compare, .db-compare tbody, .db-compare tr, .db-compare th, .db-compare td { display: block; width: 100%; }
	.db-compare tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
	.db-compare th, .db-compare td { border: 0; padding: 4px 0; }
	.db-compare td::before { content: attr(data-label) ": "; font-weight: 800; }
}

/* How it works: a real sequence, so it is numbered */
.db-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
@media (min-width: 760px) { .db-steps { grid-template-columns: repeat(4, 1fr); } }
.db-steps li { counter-increment: step; border-top: 3px solid var(--asphalt); padding-top: 14px; }
.db-steps li::before {
	content: counter(step);
	display: block; margin-bottom: 8px;
	font-size: 2.6rem; font-weight: 900; line-height: 1; font-variation-settings: "wdth" 125;
	color: var(--steel);
}
.db-steps h3 { margin-bottom: 6px; }
.db-steps p { color: var(--muted); font-size: 1rem; margin: 0; }

/* Service list: rows, not cards */
.db-services { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.db-services li { display: grid; grid-template-columns: 1fr; gap: 6px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .db-services li { grid-template-columns: 280px 1fr auto; align-items: baseline; } }
.db-services h3 { margin: 0; }
.db-services h3 a { color: var(--asphalt); text-decoration: none; }
.db-services h3 a:hover { text-decoration: underline; }
.db-services p { margin: 0; color: var(--muted); }
.db-services .db-more { font-weight: 700; white-space: nowrap; }

/* Split: copy + supporting list */
.db-split { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) { .db-split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.db-checklist { list-style: none; padding: 0; margin: 0; }
.db-checklist li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); }
.db-checklist li::before { content: ""; position: absolute; left: 0; top: 18px; width: 14px; height: 8px; border-left: 3px solid var(--steel); border-bottom: 3px solid var(--steel); transform: rotate(-45deg); }
.db-section--steel .db-checklist li { border-color: rgba(255,255,255,.18); }
.db-section--steel .db-checklist li::before { border-color: var(--safety); }

/* Size guide table */
.db-sizes { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 1rem; }
.db-sizes th, .db-sizes td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.db-sizes thead th { border-bottom: 3px solid var(--asphalt); font-variation-settings: "wdth" 112; }
.db-sizes td:first-child { font-weight: 800; white-space: nowrap; }
.db-table-scroll { overflow-x: auto; }

/* Action band */
.db-band { background: var(--asphalt); color: var(--white); padding: 48px 0; }
.db-band .db-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.db-band h2 { margin: 0; font-size: var(--step-2); max-width: 28ch; }
.db-band p { margin: 6px 0 0; color: #b9c3c8; }
.db-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Plugin directory inside our pages */
.dbq-directory { border: 0; box-shadow: none; padding: 0; background: transparent; }
.dbq-directory-state { border-radius: var(--radius); background: var(--white); }
.dbq-directory-state h2 { font-size: var(--step-1); }

/* Location pages */
.dbq-location { padding-top: 8px; }
.dbq-location .dbq-crumbs { margin-bottom: 18px; }
.dbq-location .dbq-intro { font-size: var(--step-1); max-width: 62ch; }
.dbq-location .dbq-type-card { border-radius: var(--radius); border-top: 3px solid var(--asphalt); }
.dbq-location h2 { font-size: var(--step-2); }
.location-main .entry-content > .dbq-location { max-width: calc(900px + 2 * var(--gutter)); }

/* FAQ */
.dbq-faqs details { padding: 16px 0; }
.dbq-faqs summary { font-size: 1.05rem; list-style: none; position: relative; padding-right: 32px; }
.dbq-faqs summary::-webkit-details-marker { display: none; }
.dbq-faqs summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 1.4rem; font-weight: 400; color: var(--steel); }
.dbq-faqs details[open] summary::after { content: "–"; }
.dbq-faqs details p { margin: 10px 0 0; color: var(--muted); max-width: 70ch; }

/* Contact details */
.db-contact-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) { .db-contact-grid { grid-template-columns: 1fr 1.4fr; gap: 56px; } }
.db-contact-grid .dbq { margin: 0; }
.db-contact-list { list-style: none; padding: 0; margin: 0; }
.db-contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.db-contact-list strong { display: block; font-size: .9rem; color: var(--muted); font-weight: 600; }
.db-contact-list a, .db-contact-list span { font-size: var(--step-1); font-weight: 800; color: var(--asphalt); text-decoration: none; }

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.site-footer { background: var(--steel-deep); color: #c9d6dd; padding: 56px 0 28px; font-size: .97rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h2 { font-size: 1rem; color: var(--white); margin-bottom: 12px; font-variation-settings: "wdth" 112; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 4px 0; }
.footer-brand p { max-width: 34ch; }
.footer-phone { display: inline-block; margin-top: 4px; font-size: var(--step-2); font-weight: 900; font-variation-settings: "wdth" 125; color: var(--safety) !important; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .88rem; }

/* Posts (blog fallback) */
.post-list { list-style: none; padding: 0; }
.post-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }

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