/* Snead's footer — five columns on the L&R Exteriors pattern.
 *
 * Brand + blurb + social, Our Services, Quick Links, Service Locations, Contact
 * Info. No boxes, no bullets, no row rules: plain columns, white headings, muted
 * links that go orange on hover. L&R runs orange on navy; this is the same
 * layout in Snead's orange-on-black.
 *
 * Loaded last on every mirror page, so it wins over Divi without !important
 * except where Divi's own rules are already !important.
 */

/* ---- layout ------------------------------------------------------------
 *
 * The columns are a grid, not Divi's floats. Divi sizes footer widgets in
 * percentages that assume three of them and cancels the gutter with a
 * :last-child rule; five widgets do not fit that arithmetic at all. Grid drops
 * the whole calculation rather than patching it.
 */

#main-footer #footer-widgets {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.15fr;
  gap: 40px 34px;
  align-items: start;
  padding-bottom: 56px;
}

#main-footer #footer-widgets .footer-widget {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}

/* Divi floats every widget, so it shrink-wraps to its longest line. */
#main-footer #footer-widgets .footer-widget .fwidget {
  float: none !important;
  width: 100%;
  max-width: none;
  margin-bottom: 0 !important;
}

/* Divi's clearfix pseudo-elements become stray grid items. Nothing left to
   clear once the floats are gone. */
#main-footer #footer-widgets:before,
#main-footer #footer-widgets:after {
  display: none;
}

@media (max-width: 1280px) {
  #main-footer #footer-widgets {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

@media (max-width: 860px) {
  #main-footer #footer-widgets {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
}

@media (max-width: 560px) {
  #main-footer #footer-widgets {
    grid-template-columns: 1fr;
  }
}

/* ---- headings ---------------------------------------------------------- */

/* Divi ships these at 28px orange, which shouts over the links underneath. */
#main-footer #footer-widgets .footer-widget h4.title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 18px;
  padding: 0;
}

/* ---- link columns ------------------------------------------------------ */

#footer-widgets ul.sos-links {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #b0aba6;
  font-size: 15px;
  line-height: 1.5;
}

#footer-widgets ul.sos-links li {
  padding: 0;
  margin: 0 0 11px;
  position: static;
}

/* Divi draws an outlined square before every footer li. */
#footer-widgets ul.sos-links li:before {
  content: none;
  display: none;
}

#footer-widgets ul.sos-links li a {
  color: #b0aba6;
  text-decoration: none;
  transition: color 0.2s ease;
}

#footer-widgets ul.sos-links li a:hover {
  color: #dd5c26;
}

/* ---- brand column ------------------------------------------------------ */

/* The truck shot carries the logo, the phone number and the livery in one
   image, which the old wordmark plate could not. Served as WebP with a PNG
   fallback; both are 700px wide, roughly 2x the column, and trimmed of the
   transparent margin the export came with. */
#main-footer .sos-truck {
  display: block;
  margin: 0 0 20px;
}

#main-footer .sos-truck img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
}

#main-footer .sos-blurb {
  color: #b0aba6;
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 20px;
  padding: 0;
  max-width: 34ch;
}

/* The crawled footer put the social icons in grey discs. Bare icons sit better
   next to the wordmark plate. */
#main-footer div.lseo-social-network {
  display: flex;
  gap: 18px;
  align-items: center;
}

#main-footer div.lseo-social-network > a {
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: none;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

#main-footer div.lseo-social-network > a:hover {
  opacity: 1;
  transform: none;
}

#main-footer div.lseo-social-network img {
  display: block;
  width: 20px;
  height: 20px;
}

#main-footer .sos-badge {
  display: inline-block;
  margin-top: 24px;
}

#main-footer .sos-badge img {
  display: block;
  width: 74px;
  height: auto;
}

/* ---- contact column ---------------------------------------------------- */

#main-footer .lseo-contact-card {
  color: #b0aba6;
  font-size: 15px;
  line-height: 1.6;
}

#main-footer .sos-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

#main-footer .sos-contact-row svg {
  color: #dd5c26;
  flex: none;
  margin-top: 3px;
}

#main-footer .lseo-contact-card a {
  color: #b0aba6;
  text-decoration: none;
  transition: color 0.2s ease;
}

#main-footer .lseo-contact-card a:hover {
  color: #dd5c26;
}

#main-footer .sos-contact-block {
  margin-top: 22px;
}

#main-footer .sos-contact-block h5 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
  padding: 0;
}

#main-footer .sos-hours-line {
  font-size: 14px;
  line-height: 1.7;
}

#main-footer .sos-estimate {
  display: inline-block;
  color: #dd5c26 !important;
  font-weight: 700;
}

#main-footer .sos-estimate:hover {
  color: #fff !important;
}

/* Schema plumbing: the URL is there for the microdata, not for reading. */
#main-footer .lseo-contact-card .website-url {
  display: none;
}

/* ---- agency credit -----------------------------------------------------
 *
 * The L&R credit bar in Snead's palette: black under the orange copyright bar
 * instead of navy, warm grey type going white on hover. The logo art is white
 * on transparent, so it needs no recolouring.
 */

#main-footer .sos-agency-credit {
  background: #0b0b0b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
  text-align: center;
}

#main-footer .sos-agency-credit a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #8b8681;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease;
}

#main-footer .sos-agency-credit a:hover {
  color: #fff;
}

#main-footer .sos-agency-credit img {
  height: 22px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

#main-footer .sos-agency-credit a:hover img {
  opacity: 1;
}

/* The fixed HOURS/MAP bar covers the bottom of the viewport on small screens,
   so the credit bar clears it rather than hiding behind it. Divi's own bottom
   padding moves off #footer-bottom to here. */
@media (max-width: 980px) {
  #main-footer #footer-bottom {
    padding-bottom: 15px !important;
  }
  #main-footer .sos-agency-credit {
    padding-bottom: 62px;
  }
  #main-footer .sos-agency-credit a {
    font-size: 13px;
  }
  #main-footer .sos-agency-credit img {
    height: 20px;
  }
}
