/*
Theme Name: LB Auto Parts
Theme URI: https://www.lbautoparts.com
Description: Informational site for LB Auto Parts Distributors, Inc. Page content is edited with Elementor.
Author: LB Auto Parts Distributors, Inc.
Template: hello-elementor
Version: 1.0.0
Text Domain: lb-auto
*/

:root {
  --navy: #24356f;
  --blue: #364b99;
  --red: #b02a2a;
  --red-bright: #cb3232;
  --ink: #1a1d27;
  --muted: #4a5168;
  --line: #e3e6ef;
  --paper: #f4f6fa;
  --white: #ffffff;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

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

a { color: var(--blue); }

a:hover { color: var(--navy); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--navy);
  color: var(--white);
  padding: 8px 12px;
  z-index: 200;
}

.skip-link:focus { top: 8px; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

header.site-header {
  display: block !important;
  position: sticky !important;
  top: 0;
  z-index: 50;
  padding: 0 !important;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(26, 29, 39, 0.03);
}

header.site-header:not(.dynamic-header) {
  max-width: none !important;
  width: 100% !important;
  margin-inline: 0 !important;
}

.site-header::before {
  content: "";
  display: block;
  width: 100%;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--red-bright) 0 25%,
    var(--navy) 25% 50%,
    var(--red-bright) 50% 75%,
    var(--navy) 75% 100%
  );
}

body.admin-bar .site-header { top: 32px; }

.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
}

.site-logo { display: flex; line-height: 0; }

.site-logo img { height: 68px; width: auto; }

.site-header__tools {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 10px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px 26px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 8px 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-family: Barlow, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-nav__list a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.site-nav__list .current-menu-item a,
.site-nav__list .current_page_item a,
.site-nav__list a:hover {
  border-bottom-color: var(--red);
  color: var(--navy);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: var(--white) !important;
  text-decoration: none;
  font-family: Barlow, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 10px 16px;
  border-radius: 999px;
}

.header-phone:hover { background: #8e2222; color: var(--white) !important; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
  margin: 0 auto;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

footer.site-footer,
footer.site-footer:not(.dynamic-footer) {
  display: block !important;
  max-width: none !important;
  width: 100% !important;
  margin-inline: 0 !important;
  padding: 0 !important;
  background: var(--navy);
  color: #e7ebf6;
  margin-top: 0;
}

.site-footer a { color: #ffffff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.site-footer__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.site-footer img { height: 56px; width: auto; background: #fff; border-radius: 6px; padding: 6px 8px; }

.site-footer h2 {
  margin: 0 0 10px;
  font-family: Barlow, sans-serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
}

.site-footer p,
.site-footer address {
  margin: 0;
  font-style: normal;
  color: #d5dcf0;
}

.site-footer__call a {
  display: block;
  font-family: Barlow, sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 6px;
}

.site-footer__call p { margin-top: 10px; }

.site-footer__legal {
  max-width: none;
  margin: 0;
  padding: 16px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #c5cde4;
  font-size: 15px;
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 8px 28px;
  flex-wrap: wrap;
}

.site-footer__legal a { color: #ffffff; text-decoration: underline; }

.lb-missing {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.lb-missing h1 {
  font-family: Barlow, sans-serif;
  font-size: 42px;
  color: var(--navy);
  margin: 0 0 12px;
}

.lb-missing a {
  display: inline-block;
  margin-top: 8px;
  font-family: Barlow, sans-serif;
  font-weight: 700;
}

.elementor .elementor-widget-text-editor a { color: var(--blue); }
.elementor .elementor-widget-text-editor a:hover { color: var(--navy); }

.elementor-widget-text-editor { color: var(--ink); }

.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

.lb-hero .elementor-heading-title,
.lb-pagehead .elementor-heading-title,
.lb-band .elementor-heading-title { color: #fff; }

.lb-kicker .elementor-heading-title {
  color: #ffd0d0;
  font-family: Barlow, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}

.lb-hero h1.elementor-heading-title,
.lb-pagehead h1.elementor-heading-title {
  font-family: Barlow, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

.lb-hero .elementor-widget-text-editor,
.lb-pagehead .elementor-widget-text-editor { color: #e7ebf6; }

.lb-hero .elementor-widget-text-editor { max-width: 640px; font-size: 20px; }

.lb-actions.e-con { flex-direction: row !important; flex-wrap: wrap; gap: 12px !important; }

.lb-cards-row.e-con {
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 22px !important;
}

.lb-card.e-con {
  flex: 1 1 260px !important;
  width: auto !important;
  background: #fff;
  border-radius: 12px;
  border-top: 4px solid var(--red-bright);
  box-shadow: 0 12px 28px rgba(24, 36, 74, 0.06);
}

.lb-card .elementor-heading-title {
  font-family: Barlow, sans-serif;
  color: var(--navy);
  font-size: 24px;
  margin: 0;
}

.lb-split-row.e-con {
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 40px !important;
  align-items: flex-start;
}

.lb-split-row > .e-con { flex: 1 1 280px !important; width: auto !important; }

.lb-section-title .elementor-heading-title {
  font-family: Barlow, sans-serif;
  color: var(--navy);
  font-size: 32px;
  margin: 0 0 8px;
}

.lb-check .elementor-icon-list-icon { color: var(--red); }
.lb-check .elementor-icon-list-text { color: var(--ink); }

.lb-form label {
  display: block;
  margin: 0 0 14px;
  font-family: Barlow, sans-serif;
  font-weight: 600;
  color: var(--ink);
}

.lb-form input[type="text"],
.lb-form input[type="email"],
.lb-form input[type="tel"],
.lb-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid #d5d9e4;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 400 17px/1.4 "Source Sans 3", sans-serif;
}

.lb-form textarea { min-height: 140px; resize: vertical; }

.lb-form input:focus,
.lb-form textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}

.lb-form input[type="submit"] {
  display: inline-block;
  width: auto;
  margin-top: 4px;
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: Barlow, sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 22px;
}

.lb-form input[type="submit"]:hover { background: #8e2222; }

.wpcf7-not-valid-tip { color: var(--red); font-size: 14px; }

.wpcf7 form .wpcf7-response-output {
  margin: 16px 0 0;
  border-color: var(--blue);
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

@media (max-width: 860px) {
  .site-logo img { height: 48px; }

  .site-header__tools .header-phone {
    font-size: 14px;
    padding: 8px 12px;
    white-space: nowrap;
  }

  .site-header__tools { display: flex; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 8px 24px 18px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 16px 24px rgba(26, 29, 39, 0.08);
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav.is-open { display: flex; }

  .site-nav__list { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }

  .site-nav__list a { display: block; padding: 12px 0; }

  .site-nav .header-phone { display: none; }

  .site-footer__grid { grid-template-columns: 1fr; padding-top: 36px; }

  .lb-cards-row.e-con,
  .lb-split-row.e-con,
  .lb-actions.e-con { flex-direction: column !important; }
}
