/*
Theme Name: Quality Trucks USA
Theme URI: https://qualitytrucksusa.com
Author: Quality Equipment & Parts, Inc.
Description: Simple landing page theme for Quality Trucks USA, styled after qepusa.com, with a WordPress login in the top right.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: qualitytrucksusa
*/

:root {
  --orange: #f58120;
  --orange-dark: #d96d10;
  --black: #111;
  --ink: #212529;
  --muted: #5b6168;
  --line: #e6e6e6;
  --light: #f6f6f6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1240px, 100% - 32px); margin: 0 auto; }

/* ---------- top bar ---------- */
.topbar { background: #fff; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 82px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: grid; place-items: center;
  font: 800 30px/1 'Montserrat', sans-serif;
  box-shadow: inset 0 0 0 4px #fff, 0 0 0 3px var(--orange);
}
.brand-text { line-height: 1.05; }
.brand-text b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.5px; color: var(--orange); }
.brand-text span { font-size: 12px; font-weight: 700; color: var(--black); letter-spacing: .5px; text-transform: uppercase; }
.brand img { display: block; height: 74px; width: auto; }
.top-right { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.top-links { display: flex; gap: 18px; }
.top-links a { text-decoration: none; }
.top-links a:hover { color: var(--orange); }

/* ---------- login ---------- */
.account { position: relative; }
.account-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--black); color: #fff; border: 0; border-radius: 4px;
  padding: 9px 14px; font: 600 13px 'Montserrat', sans-serif; cursor: pointer; text-decoration: none;
}
.account-btn:hover { background: var(--orange); }
.account-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50;
  width: 280px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--orange);
  border-radius: 4px; box-shadow: 0 12px 30px rgba(0,0,0,.15); padding: 16px;
  display: none;
}
.account.open .account-panel { display: block; }
.account-panel h4 { margin: 0 0 10px; font-size: 15px; }
.account-panel label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.account-panel input[type=text],
.account-panel input[type=password] {
  width: 100%; padding: 8px 10px; border: 1px solid #cfd4da; border-radius: 3px; font: 14px 'Montserrat', sans-serif; margin-bottom: 10px;
}
.account-panel .login-remember label { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.account-panel input[type=submit] {
  width: 100%; background: var(--orange); color: #fff; border: 0; border-radius: 3px;
  padding: 10px; font: 700 13px 'Montserrat', sans-serif; text-transform: uppercase; cursor: pointer;
}
.account-panel input[type=submit]:hover { background: var(--orange-dark); }
.account-panel .lost { display: block; margin-top: 10px; font-size: 12px; color: var(--muted); }
.account-panel .hello { font-size: 13px; margin: 0 0 10px; }
.account-panel .acct-links a { display: block; padding: 7px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.account-panel .acct-links a:hover { color: var(--orange); }
.login-error { background: #fdecec; color: #a40000; font-size: 12px; padding: 8px; border-radius: 3px; margin-bottom: 10px; }

/* ---------- nav ---------- */
.mainnav { background: var(--black); }
.mainnav .wrap { display: flex; align-items: stretch; justify-content: space-between; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.mainnav a { display: block; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; padding: 20px 16px; }
.mainnav a:hover { color: var(--orange); }
.call-box {
  background: var(--orange); color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: center;
  padding: 10px 22px; line-height: 1.2;
}
.call-box small { font-size: 12px; font-weight: 600; }
.call-box strong { font-size: 15px; }
.call-box:hover { background: var(--orange-dark); }

.notice { background: #d6661c; color: #111; text-align: center; padding: 10px 16px; font-size: 16px; }
.notice b { font-weight: 700; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 520px; display: flex; align-items: center; justify-content: flex-end;
  background: #333 center/cover no-repeat;
  background-image: linear-gradient(120deg, rgba(0,0,0,.65), rgba(0,0,0,.25)), var(--hero-img, linear-gradient(135deg, #3a3a3a, #1d1d1d));
}
.hero-card { background: rgba(255,255,255,.9); padding: 48px; max-width: 760px; margin-right: 0; }
.hero h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.15; margin: 0 0 28px; color: #000; font-weight: 800; letter-spacing: -.5px; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero p { margin: -12px 0 26px; font-size: 17px; color: var(--muted); }
.btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  flex: 1; min-width: 200px; text-align: center; text-decoration: none; text-transform: uppercase;
  font-weight: 700; font-size: 14px; padding: 14px 20px; border: 2px solid var(--black);
}
.btn-solid { background: var(--orange); border-color: var(--orange); color: #000; }
.btn-solid:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-line { background: transparent; color: #000; }
.btn-line:hover { background: #000; color: #fff; }

/* ---------- sections ---------- */
section { padding: 70px 0; }
.section-title { text-align: center; margin: 0 0 8px; font-size: 32px; font-weight: 800; }
.section-title em { color: var(--orange); font-style: normal; }
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 40px; max-width: 680px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card { border: 1px solid var(--line); border-top: 4px solid var(--orange); padding: 28px 24px; background: #fff; }
.card .ico { font-size: 30px; }
.card h3 { margin: 12px 0 8px; font-size: 19px; }
.card p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.card a { color: var(--orange); font-weight: 700; text-decoration: none; font-size: 14px; }
.band { background: var(--black); color: #fff; text-align: center; padding: 56px 0; }
.band h2 { margin: 0 0 10px; font-size: 30px; }
.band h2 em { color: var(--orange); font-style: normal; }
.band p { margin: 0 0 24px; color: #ccc; }
.band .btn { flex: none; display: inline-block; border-color: var(--orange); }
.locations { background: var(--light); }
.loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.loc { background: #fff; padding: 26px; border-left: 4px solid var(--orange); }
.loc h3 { margin: 0 0 8px; }
.loc p { margin: 0 0 6px; color: var(--muted); }
.loc a { color: var(--orange); font-weight: 700; text-decoration: none; }

/* ---------- footer ---------- */
.site-footer { background: #000; color: #bbb; padding: 40px 0 24px; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer a { color: #ddd; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.foot-brand img { display: block; height: 90px; width: auto; margin-bottom: 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.copy { width: 100%; border-top: 1px solid #333; padding-top: 16px; margin-top: 8px; font-size: 12px; color: #888; }

/* ---------- small screens ---------- */
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; padding: 12px 16px; cursor: pointer; }
@media (max-width: 900px) {
  .brand img { height: 58px; }
  .top-links { display: none; }
  .menu-toggle { display: block; }
  .mainnav ul { display: none; width: 100%; flex-direction: column; }
  .mainnav.open ul { display: flex; }
  .mainnav .wrap { flex-wrap: wrap; }
  .call-box { padding: 10px 14px; }
  .hero { justify-content: center; min-height: 440px; }
  .hero-card { padding: 28px 20px; margin: 0 16px; }
}
