/* ============================================================
   LS FABRICATION — GLOBAL FOOTER
   Styles the Theme Builder footer layout 183058 ("LS Footer").

   Moved out of an inline <style> block inside that Divi layout on
   2026-08-31 and into this file. Enqueued by the must-use plugin
   wp-content/mu-plugins/lsfab-css-loader.php (see the note at the
   top of that file for why it is not in functions.php yet).
   ============================================================ */

/* BACKGROUND MUST BE SET HERE, NOT ONLY IN THE DIVI SECTION SETTINGS.
   Divi emits the section's gradient as per-template cached inline CSS keyed
   .et_pb_section_0_tb_footer. On /classic-truck-parts-shop/ that rule is not
   emitted at all (the tb-183054-tb-459878-tb-183058 cache block has no
   background rule), so Divi's own style-static default of
   .et_pb_section{background-color:#fff} took over and the whole footer
   rendered WHITE. Painting it here makes the footer independent of that cache. */
.ls-footer,
.et-db #et-boc .et-l .ls-footer {
    background-color: #000000 !important;
    background-image: linear-gradient(180deg, #000000 0%, #141414 100%) !important;
}

.ls-footer { position: relative; font-family: var(--ls-font-body); color: var(--ls-text-muted); font-size: 15px; }
.ls-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--ls-gradient-brand); z-index: 2; }
.ls-footer .et_pb_row { width: 100% !important; max-width: 100% !important; padding: 0 !important; margin: 0 auto !important; }
.ls-footer .et_pb_column { width: 100% !important; margin: 0 !important; }
.ls-footer .et_pb_module { margin-bottom: 0 !important; }
.ls-footer__wrap { width: 90%; max-width: 1440px; margin: 0 auto; }

/* Divi Theme Options sets a global link_color of #FF0044 and emits it inside
   .et-db #et-boc .et-l, which outranks a plain .ls-footer a rule. Every selector
   that sets a link or button colour below is doubled into that scope and marked
   important, or the whole footer renders red on black. */
.ls-footer a,
.et-db #et-boc .et-l .ls-footer a { color: var(--ls-text-muted) !important; text-decoration: none; transition: color var(--ls-transition); }
.ls-footer a:hover,
.et-db #et-boc .et-l .ls-footer a:hover { color: var(--ls-red) !important; }
.ls-footer .ls-f-social a,
.et-db #et-boc .et-l .ls-footer .ls-f-social a { color: var(--ls-text) !important; }
.ls-footer .ls-f-social a:hover,
.et-db #et-boc .et-l .ls-footer .ls-f-social a:hover { color: #ffffff !important; }
.ls-footer .ls-f-nap a,
.et-db #et-boc .et-l .ls-footer .ls-f-nap a { color: var(--ls-text-soft) !important; }
.ls-footer .ls-f-nap a:hover,
.et-db #et-boc .et-l .ls-footer .ls-f-nap a:hover { color: var(--ls-red) !important; }
.ls-footer a:focus-visible { outline: 2px solid var(--ls-red); outline-offset: 3px; border-radius: 2px; }

.ls-footer .ls-f-head { font-family: var(--ls-font-display); font-weight: 700; font-size: 16px; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ls-text); margin: 0 0 var(--ls-space-4); padding: 0; }

/* --- Column grid --------------------------------------------------------- */
.ls-f-cols { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr 1.15fr; gap: var(--ls-space-7) var(--ls-space-6); padding: var(--ls-space-8) 0 var(--ls-space-7); }
.ls-f-col { min-width: 0; }
.ls-footer .ls-f-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ls-footer .ls-f-list li { margin: 0; padding: 0; list-style: none; }
.ls-footer .ls-f-list a { font-size: 14.5px; line-height: 1.35; display: inline-block; }
.ls-f-sub { margin-top: var(--ls-space-6); }

/* --- Brand column -------------------------------------------------------- */
.ls-f-logo { display: block; width: 290px; max-width: 100%; height: auto; margin: 0 0 var(--ls-space-5); }
.ls-f-blurb { margin: 0 0 var(--ls-space-6); font-size: 14.5px; color: var(--ls-text-muted); max-width: 34ch; }
.ls-f-social { display: flex; gap: 10px; flex-wrap: wrap; }
.ls-f-social a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ls-surface-2); border: 1px solid var(--ls-hairline); color: var(--ls-text); transition: background var(--ls-transition), border-color var(--ls-transition), color var(--ls-transition); }
.ls-f-social a:hover { background: var(--ls-red); border-color: var(--ls-red); color: #fff; }
.ls-f-social svg { width: 19px; height: 19px; display: block; }

/* --- Buttons (mirrors the components.css shape standard) ----------------- */
.ls-footer .ls-f-btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--ls-btn-h); padding: 0 26px; font-family: var(--ls-font-display) !important; font-weight: 700 !important; font-size: 16px !important; text-transform: uppercase !important; letter-spacing: var(--ls-tracking-button) !important; border-radius: var(--ls-radius-md) !important; border: 1px solid transparent; text-align: center; white-space: nowrap; cursor: pointer; line-height: 1.1; transition: background var(--ls-transition), color var(--ls-transition), border-color var(--ls-transition); }
.ls-footer .ls-f-btn--green,
.et-db #et-boc .et-l .ls-footer .ls-f-btn--green { background: var(--ls-green) !important; color: #ffffff !important; }
.ls-footer .ls-f-btn--green:hover,
.et-db #et-boc .et-l .ls-footer .ls-f-btn--green:hover { background: var(--ls-green-hover) !important; color: #ffffff !important; }
.ls-footer .ls-f-btn--ghost,
.et-db #et-boc .et-l .ls-footer .ls-f-btn--ghost { background: transparent !important; color: var(--ls-text) !important; border-color: var(--ls-hairline-strong) !important; }
.ls-footer .ls-f-btn--ghost:hover,
.et-db #et-boc .et-l .ls-footer .ls-f-btn--ghost:hover { background: var(--ls-surface-2) !important; color: var(--ls-text) !important; border-color: var(--ls-text) !important; }
.ls-footer .ls-f-contact { width: 100%; margin-top: var(--ls-space-5); }

.ls-f-dealer p { margin: 0 0 var(--ls-space-3); font-size: 14.5px; color: var(--ls-text-soft); }
.ls-f-dealer .ls-f-btn { width: 100%; margin-bottom: var(--ls-space-5); }
.ls-f-dealer .ls-f-btn:last-child { margin-bottom: 0; }

/* --- Reviews band -------------------------------------------------------- */
.ls-f-reviews { border-top: 1px solid var(--ls-hairline-faint); padding: var(--ls-space-7) 0; }
.ls-f-reviews .ls-f-head { text-align: center; margin-bottom: var(--ls-space-5); }

/* --- Legal / NAP bar ----------------------------------------------------- */
.ls-f-legal { background: #000; border-top: 1px solid #2B2B2B; }
.ls-f-legal__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--ls-space-4) var(--ls-space-6); flex-wrap: wrap; padding: var(--ls-space-5) 0; }
.ls-f-nap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13.5px; color: var(--ls-text-soft); margin: 0; }
.ls-f-nap .sep { color: var(--ls-text-ghost); }
.ls-f-nap a { color: var(--ls-text-soft); }
.ls-footer .ls-f-pay__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ls-footer .ls-f-pay__list li { margin: 0; padding: 0; list-style: none; line-height: 0; }
.ls-f-pay__mark { display: block; width: 48px; height: 24px; opacity: .9; }

.ls-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --- Newsletter band (Mailchimp audience "LS Fabrication", us19) ---------- */
.ls-f-signup { border-bottom: 1px solid var(--ls-hairline-faint); }
.ls-f-signup__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--ls-space-6) var(--ls-space-8); padding: var(--ls-space-6) 0; flex-wrap: wrap; }
.ls-f-signup__copy { flex: 1 1 340px; min-width: 0; }
/* The heading must out-specify the sibling paragraph rule below, which is
   (0,2,1) and was otherwise painting this muted grey — the same colour as its
   own subtext, so the band had no hierarchy. This selector is (0,3,0). */
.ls-footer .ls-f-signup__copy .ls-f-head { margin-bottom: var(--ls-space-2) !important; font-size: 22px; letter-spacing: 0.05em; color: var(--ls-text) !important; }
.ls-footer .ls-f-signup__copy p { margin: 0; color: var(--ls-text-soft); font-size: 14px; max-width: 52ch; }
.ls-f-signup__form { display: flex; gap: var(--ls-space-2); flex: 0 1 430px; }
.ls-footer .ls-f-signup__form input {
    flex: 1 1 auto; min-width: 0; height: var(--ls-control-h);
    background: var(--ls-surface-2) !important;
    border: 1px solid var(--ls-hairline-input) !important;
    border-radius: var(--ls-radius-md) !important;
    color: var(--ls-text) !important;
    font-family: var(--ls-font-body) !important; font-size: 15px !important;
    padding: 0 14px !important; margin: 0 !important; box-shadow: none !important;
}
.ls-footer .ls-f-signup__form input::placeholder { color: var(--ls-text-faint) !important; }
.ls-footer .ls-f-signup__form input:focus { outline: none; border-color: var(--ls-red) !important; box-shadow: var(--ls-focus-ring) !important; }
.ls-footer .ls-f-signup__form .ls-f-btn { -webkit-appearance: none; appearance: none; margin: 0 !important; width: auto !important; }
.ls-footer .ls-f-btn--red,
.et-db #et-boc .et-l .ls-footer .ls-f-btn--red { background: var(--ls-red) !important; color: #ffffff !important; border-color: transparent !important; }
.ls-footer .ls-f-btn--red:hover,
.et-db #et-boc .et-l .ls-footer .ls-f-btn--red:hover { background: var(--ls-red-hover) !important; color: #ffffff !important; }
.ls-f-signup__hp { position: absolute; left: -5000px; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1080px) {
    .ls-f-cols { grid-template-columns: repeat(3, 1fr); }
    .ls-f-col--brand { grid-column: 1 / -1; }
    .ls-f-col--brand .ls-f-blurb { max-width: 60ch; }
}
@media (max-width: 720px) {
    .ls-f-cols { grid-template-columns: repeat(2, 1fr); padding: var(--ls-space-7) 0 var(--ls-space-6); }
    .ls-f-col--brand,
    .ls-f-col--dealer { grid-column: 1 / -1; }
    .ls-f-dealer .ls-f-btn { max-width: 340px; }
    .ls-f-signup__inner { flex-direction: column; align-items: stretch; }
    .ls-f-signup__form { flex: 1 1 auto; }
}
@media (max-width: 440px) {
    .ls-footer__wrap { width: 88%; }
    .ls-f-legal__inner { flex-direction: column; align-items: flex-start; }
    .ls-footer .ls-f-nap { width: 100%; }
    .ls-footer .ls-f-pay__list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; width: 100%; }
    .ls-f-pay__mark { width: 100%; height: auto; }
    .ls-f-cols { gap: var(--ls-space-6) var(--ls-space-5); }
    .ls-footer .ls-f-head { font-size: 15px; }
    .ls-footer .ls-f-list a { font-size: 14px; }
    .ls-footer .ls-f-contact { padding: 0 10px; font-size: 15px !important; letter-spacing: 0.08em !important; }
    .ls-f-signup__form { flex-direction: column; }
    .ls-footer .ls-f-signup__form .ls-f-btn { width: 100% !important; }
}
