/*
Theme Name: Surplus USA
Theme URI: https://surplususa.net/
Author: Surplus USA
Description: Custom theme for Surplus USA (SurplusUSA.net), buyers of industrial surplus, machinery, process equipment, turbines, metals, wire and cable, and complete plants throughout the United States and Canada. Activating it creates every page, the menus and the static homepage. Includes built-in SEO (title, meta description, canonical, Open Graph), JSON-LD schema for answer engines (LocalBusiness, Service, FAQPage, HowTo, BreadcrumbList), /llms.txt and a quote request form with file uploads.
Version: 2.0.1
Requires at least: 6.3
Tested up to: 7.1
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: surplususa
*/

@font-face {
	font-family: "Open Sans";
	src: url("assets/fonts/open-sans-latin.woff2") format("woff2");
	font-weight: 300 800;
	font-stretch: 75% 100%;
	font-style: normal;
	font-display: swap;
}

:root {
	--navy-950: #0d1424;
	--navy-900: #111a2e;
	--navy: #1b2a4a;
	--red: #c8102e;
	--red-dark: #a30d26;
	--accent: #f2545b;
	--ink: #1c2433;
	--muted: #586274;
	--line: #d8dde5;
	--band: #eceff3;
	--band-2: #dfe4eb;
	--white: #fff;
	--container: 1280px;
	--font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.screen-reader-text, .hp {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--white); color: var(--navy); padding: 8px 16px; }
.skip-link:focus { left: 8px; top: 8px; }

/* Condensed display type ------------------------------------------------ */
.hero h1, .section-title, .card-title, .step h3, .checklist h3, .cta-title, .quote-title, .one-call-title, .service h3, .coverage-title, .coverage-big, .country h2, .buy-list h3 {
	font-stretch: 75%;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0;
}

/* Buttons --------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; gap: 14px;
	padding: 10px 16px; font-size: 14px; font-weight: 700; line-height: 1.2;
	text-decoration: none; border-radius: var(--radius); border: 1px solid transparent; white-space: nowrap;
	transition: background-color .15s, color .15s, border-color .15s; cursor: pointer;
	font-family: inherit;
}
.btn .chev { flex: none; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); }
.btn-outline { background: rgba(13, 20, 36, .55); color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-white { background: var(--white); color: var(--red); }
.btn-white:hover { background: var(--navy-900); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header ---------------------------------------------------------------- */
.site-header { background: var(--navy-900); border-bottom: 1px solid rgba(255, 255, 255, .08); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 92px; }
.brand { flex: none; }
.brand .logo { width: 170px; height: auto; }
.primary-nav { display: flex; align-items: center; flex: 1; justify-content: space-between; gap: 20px; }
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu a {
	display: block; color: var(--white); text-decoration: none; font-size: 14px; font-weight: 600;
	padding: 34px 10px; position: relative; white-space: nowrap;
}
.primary-nav .menu > li > a::after {
	content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px;
	background: var(--accent); transform: scaleX(0); transition: transform .15s;
}
.primary-nav .menu > li > a:hover::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current-page-ancestor > a::after,
.primary-nav .current_page_parent > a::after { transform: scaleX(1); }
.primary-nav .sub-menu {
	display: none; position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; margin: 0; padding: 8px 0;
	background: var(--navy-900); border-top: 3px solid var(--red); box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { padding: 8px 16px; font-weight: 500; }
.header-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255, 255, 255, .35); width: 46px; height: 42px; border-radius: var(--radius); cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 22px; height: 2px; background: var(--white); margin: 0 auto; position: relative; transition: transform .2s; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------ */
.hero {
	position: relative; color: var(--white); background-color: var(--navy-950);
	background-image:
		linear-gradient(90deg, rgba(13, 20, 36, .96) 0%, rgba(13, 20, 36, .86) 32%, rgba(13, 20, 36, .45) 62%, rgba(13, 20, 36, .2) 100%),
		var(--hero-img);
	background-size: cover; background-position: center right;
	padding: 72px 0 84px;
}
.hero-inner { max-width: var(--container); }
.eyebrow {
	display: flex; align-items: center; gap: 14px; text-transform: uppercase; font-size: 13px; font-weight: 700;
	letter-spacing: .04em; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: .98; max-width: 22ch; margin-bottom: 26px; }
.hero h1 span { display: block; }
.hero h1 .accent, .accent { color: var(--accent); }
.hero-sub { font-size: clamp(1rem, 1.4vw, 1.2rem); max-width: 34em; color: rgba(255, 255, 255, .92); margin-bottom: 26px; }
.hero-slim { padding: 56px 0; }
.hero-slim h1 { margin-bottom: 0; max-width: none; }


/* Breadcrumbs ----------------------------------------------------------- */
.breadcrumbs { background: var(--band); font-size: 13px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }
.breadcrumbs a { color: var(--navy); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--muted); }

/* Sections -------------------------------------------------------------- */
.section { padding: 56px 0; }
.section-tight { padding: 40px 0; }
.band { background: var(--band); }
.section-title {
	font-size: clamp(1.9rem, 3.2vw, 2.75rem); color: var(--navy-900); margin-bottom: 26px;
	padding-left: 22px; position: relative; line-height: 1.05;
}
.section-title::before {
	content: ""; position: absolute; left: 2px; top: .12em; bottom: .08em; width: 7px;
	background: var(--red); transform: skewX(-14deg);
}
.section-note { color: var(--muted); font-size: 14px; margin: -14px 0 18px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.more-link { margin: 18px 0 0; font-weight: 700; }
.more-link a { text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }

/* Cards ----------------------------------------------------------------- */
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--white); }
.card-img { display: block; aspect-ratio: 508 / 288; overflow: hidden; background: var(--band-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--navy); color: var(--white); padding: 10px 14px; }
.card-title { font-size: 1.45rem; line-height: 1.1; }
.card-bar .chev { color: var(--accent); flex: none; }
.card:hover .card-bar { background: var(--red); }
.card:hover .card-bar .chev { color: var(--white); }
.card-desc { display: block; border: 1px solid var(--line); border-top: 0; padding: 12px 14px; font-size: 14px; color: var(--muted); flex: 1; line-height: 1.5; }
.city-cards .card-img { aspect-ratio: 508 / 230; }

/* Split ----------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.split-text p { color: var(--muted); font-size: 1.05rem; }
.split-img { margin: 0; border-bottom: 4px solid var(--red); }
.split-img img { width: 100%; aspect-ratio: 508 / 300; object-fit: cover; }
.split-form { align-items: start; }

/* Checklist ------------------------------------------------------------- */
.checklist { background: var(--band-2); border-top: 4px solid var(--red); padding: 18px 20px 22px; }
.band .checklist { background: var(--band-2); }
.checklist h3 { font-size: 1.6rem; color: var(--navy-900); margin-bottom: 14px; }
.checklist ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { background: var(--white); padding: 10px 14px; font-weight: 700; font-size: 15px; display: flex; gap: 14px; align-items: baseline; }
.checklist .num { color: var(--red); font-size: 12px; font-weight: 700; }

/* Steps ----------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; }
.step { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); padding: 18px 20px; }
.step h3 { font-size: 1.5rem; color: var(--navy-900); margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* FAQs ------------------------------------------------------------------ */
.faq { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--red); padding: 16px 20px; }
.faq h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy-900); margin-bottom: 6px; line-height: 1.3; }
.faq p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Tiles, photo grid, one-call, coverage --------------------------------- */
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 60em; margin: -10px 0 24px; }
.tiles { list-style: none; margin: 0; padding: 0; gap: 12px; }
.tile { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--red); padding: 12px 16px; font-weight: 700; color: var(--navy-900); font-size: 15px; }
.band .tile { border-color: var(--line); border-left-color: var(--red); }
.photo-grid { gap: 14px; }
.photo { position: relative; display: block; overflow: hidden; background: var(--band-2); color: var(--white); text-decoration: none; }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .35s; }
.photo:hover img { transform: scale(1.05); }
.photo span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-weight: 700; font-size: 14.5px; background: linear-gradient(transparent, rgba(13, 20, 36, .9)); }
.photo:hover span { color: var(--white); }
.one-call { background: var(--navy-900); color: var(--white); }
.one-call-lead { font-size: 1.12rem; max-width: 62em; color: rgba(255, 255, 255, .9); margin-bottom: 18px; }
.one-call-title { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1; margin: 0 0 8px; }
.one-call-sub { font-size: 1.1rem; color: rgba(255, 255, 255, .85); margin-bottom: 26px; }
.services { list-style: none; margin: 0; padding: 0; }
.service { border-top: 4px solid var(--red); background: rgba(255, 255, 255, .06); padding: 16px 18px; }
.service h3 { font-size: 1.5rem; margin-bottom: 6px; }
.service p { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, .8); }
.one-call-phone { margin: 24px 0 0; }
.one-call-phone a { color: var(--white); font-weight: 800; font-size: 1.4rem; text-decoration: none; border-bottom: 3px solid var(--red); }
.flags { display: inline-flex; gap: 6px; vertical-align: middle; margin-left: 6px; }
.flag { display: block; height: 1em; width: auto; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); border-radius: 1px; }
.coverage-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.coverage-title { font-size: clamp(1.7rem, 3vw, 2.5rem); color: var(--navy-900); margin: 0 0 6px; line-height: 1.05; }
.coverage-sub { margin: 0; color: var(--muted); }
.coverage-big { font-size: clamp(2.4rem, 5.5vw, 4.4rem); color: var(--navy-900); line-height: 1; margin: 0 0 28px; }
.coverage-big .flags { margin-left: 10px; }
.countries { margin-bottom: 26px; }
.country { border: 1px solid var(--line); border-top: 4px solid var(--red); padding: 20px; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center; }
.country .flag { height: 34px; grid-row: span 2; }
.country h2 { font-size: 1.9rem; color: var(--navy-900); }
.country p { margin: 0; color: var(--muted); }
.buy-lists { align-items: start; }
.buy-list { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); padding: 16px 20px; }
.buy-list.featured { border-top-color: var(--red); }
.buy-list h3 { font-size: 1.5rem; margin-bottom: 8px; }
.buy-list h3 a { color: var(--navy-900); text-decoration: none; }
.buy-list h3 a:hover { color: var(--red); }
.buy-list ul { margin: 0; padding-left: 1.1em; columns: 2; column-gap: 24px; color: var(--muted); font-size: 14.5px; }
.buy-list li { break-inside: avoid; margin-bottom: 4px; }
.asis { font-weight: 800; color: var(--navy-900); font-size: 1.15rem; }
.accent-dark { color: var(--red); }

/* Top bar ---------------------------------------------------------------- */
.top-bar { background: var(--red); color: var(--white); font-size: 13.5px; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px 20px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.top-bar p { margin: 0; display: flex; align-items: center; gap: 6px; }
.top-bar .nowrap, .top-bar strong { white-space: nowrap; }
.top-bar strong { text-transform: uppercase; letter-spacing: .03em; }
.top-bar .one-call-tag { font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.top-bar a { color: var(--white); font-weight: 800; text-decoration: none; margin-left: 10px; }
.top-bar a:hover { text-decoration: underline; color: var(--white); }

/* CTA band -------------------------------------------------------------- */
.cta-band {
	background:
		repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 255, 255, .07) 22px 34px) right / 34% 100% no-repeat,
		linear-gradient(90deg, var(--red-dark), var(--red));
	color: var(--white); padding: 30px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-phone { color: var(--white); font-weight: 700; font-size: 1.1rem; text-decoration: none; white-space: nowrap; }
.cta-phone:hover { color: var(--white); text-decoration: underline; }
.cta-title { font-size: clamp(1.7rem, 3vw, 2.6rem); margin: 0; line-height: 1.05; }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .85); font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 18px; flex-wrap: wrap; }
.footer-brand img { width: 120px; }
.footer-tag { margin: 0; }
.footer-domain { margin: 0; font-weight: 700; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-meta { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 14px; padding-bottom: 22px; font-size: 13px; color: rgba(255, 255, 255, .65); }
.footer-menu { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-contact, .copyright { margin: 0 0 6px; }

/* Quote form ------------------------------------------------------------ */
.quote-card { background: var(--white); border: 1px solid var(--line); padding: 24px; box-shadow: 0 6px 20px rgba(17, 26, 46, .06); scroll-margin-top: 110px; }
.quote-title { font-stretch: 100%; text-transform: none; font-size: 1.3rem; color: var(--navy-900); margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.form-grid p { margin: 0 0 10px; }
.form-grid .full { grid-column: 1 / -1; }
.quote-form label { display: block; font-size: 13px; font-weight: 700; color: var(--navy-900); margin-bottom: 4px; }
.quote-form input, .quote-form select, .quote-form textarea {
	width: 100%; font: inherit; font-size: 14px; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fafbfc; color: var(--ink);
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: var(--navy); outline: 2px solid rgba(27, 42, 74, .15); }
.quote-form small { color: var(--muted); font-size: 12px; }
.form-msg { padding: 12px 14px; margin-bottom: 14px; font-size: 14px; border-left: 4px solid; }
.form-msg.success { background: #ecf8f0; border-color: #1f8a4c; }
.form-msg.error { background: #fdecee; border-color: var(--red); }
.contact-list { list-style: none; padding: 0; margin: 18px 0 0; }
.contact-list li { margin-bottom: 6px; }

/* Editor content -------------------------------------------------------- */
.entry-content { max-width: 860px; }
.entry-content h2 { font-size: 1.8rem; margin: 1.4em 0 .5em; color: var(--navy-900); }
.entry-content h3 { font-size: 1.3rem; margin: 1.2em 0 .4em; color: var(--navy-900); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.post-summary { margin-bottom: 2em; }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 1340px) {
	.header-inner { gap: 18px; }
	.primary-nav .menu a { padding-left: 7px; padding-right: 7px; font-size: 13px; }
	.primary-nav .menu > li > a::after { left: 7px; right: 7px; }
	.brand .logo { width: 140px; }
	.header-cta { gap: 12px; }
}

@media (max-width: 1180px) {
	.nav-toggle { display: block; }
	.header-inner { min-height: 72px; flex-wrap: wrap; gap: 0; }
	.brand .logo { width: 128px; }
	.primary-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 18px; }
	.nav-open .primary-nav { display: flex; }
	.primary-nav .menu { flex-direction: column; }
	.primary-nav .menu a { padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 15px; }
	.primary-nav .menu > li > a::after { display: none; }
	.primary-nav .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 14px; }
	.header-cta { margin-top: 12px; }
	.grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1340px) and (min-width: 1181px) {
	.primary-nav .menu a { font-size: 12.5px; padding-left: 6px; padding-right: 6px; }
}
@media (max-width: 860px) {
	.container { padding: 0 20px; }
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
	.split { grid-template-columns: 1fr; gap: 28px; }
	.hero { padding: 52px 0 60px; background-position: 70% center; }
	.hero { background-image: linear-gradient(90deg, rgba(13, 20, 36, .95), rgba(13, 20, 36, .75)), var(--hero-img); }
	.section { padding: 44px 0; }
	.footer-inner { flex-direction: column; text-align: center; }
	.footer-meta { text-align: center; }
	.footer-menu { justify-content: center; }
}
@media (max-width: 600px) {
	.container { padding: 0 16px; }
	.grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
	.photo-grid { grid-template-columns: repeat(2, 1fr); }
	.buy-list ul { columns: 1; }
	.top-bar { font-size: 12.5px; }
	.top-bar-inner { justify-content: center; text-align: center; }
	.top-bar p { flex-wrap: wrap; justify-content: center; gap: 2px 6px; }
	.top-bar .sep { display: none; }
	.hero h1 { font-size: 2.6rem; }
	.cta-inner { flex-direction: column; align-items: flex-start; }
	.admin-bar .site-header { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
