/* Mars HVAC Revamp v1.0.0 — CSS only.
   Three scoped jobs:
   1. The "Our Family of Services" band in the Theme Builder footer
      (.et_pb_section_1_tb_footer) becomes a navy card grid, mirroring
      the ADU Cities footer band. Footer template = site-wide by design.
   2. Footer template section padding tightened (main footer + the
      copyright bar). The slide-in "Need Help?" section
      (.et_pb_section_3_tb_footer, .slide-in-section-v3) is deliberately
      NOT touched: it is a fixed slide-in panel, not footer flow, and
      its padding is part of its panel layout.
   3. Homepage whitespace: regular sections inside #main-content get a
      moderate 34px vertical padding. The hero (.et_pb_section_0) and
      the Comprehensive specialty section (.et_section_specialty) are
      excluded. Nothing here touches other pages' content sections. */

/* ---------- 1. Family of Services band ---------- */

#page-container .et_pb_section_1_tb_footer.et_pb_section {
    background-color: #0A1E3C !important;
    padding-top: 44px !important;
    padding-bottom: 44px !important;
}

#page-container .et_pb_section_1_tb_footer .et_pb_text_7_tb_footer .et_pb_text_inner h4 {
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

/* The links live in one <p> separated by <br />. Hide the breaks and
   lay the <p> out as a 2-column grid so each link becomes a card. */
#page-container .et_pb_section_1_tb_footer .et_pb_text_7_tb_footer .et_pb_text_inner p {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 0;
    padding: 0;
}

#page-container .et_pb_section_1_tb_footer .et_pb_text_7_tb_footer .et_pb_text_inner p br {
    display: none !important;
}

#page-container .et_pb_section_1_tb_footer .et_pb_text_7_tb_footer .et_pb_text_inner p a {
    display: block;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 6px;
    padding: 18px 20px;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

#page-container .et_pb_section_1_tb_footer .et_pb_text_7_tb_footer .et_pb_text_inner p a:hover {
    color: #FFC527 !important;
    border-color: rgba(255, 201, 39, .55);
}

@media (max-width: 640px) {
    #page-container .et_pb_section_1_tb_footer .et_pb_text_7_tb_footer .et_pb_text_inner p {
        grid-template-columns: 1fr;
    }
}

/* ---------- 2. Footer section padding ---------- */

/* Main footer (logo / quick links / areas served). */
#page-container .et_pb_section_0_tb_footer.et_pb_section {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}

/* Copyright bar: this section IS the red bottom bar (it holds only
   .et_pb_text_8_tb_footer, "Copyright 2026, Mars HVAC & Electric,
   Mars Construction Industries"). Colour untouched; slimmed only. */
#page-container .et_pb_section_2_tb_footer.et_pb_section {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

/* ---------- 3. Homepage section tightening ---------- */

body.home #main-content .et_pb_section:not(.et_pb_section_0):not(.et_section_specialty) {
    padding-top: 34px !important;
    padding-bottom: 34px !important;
}
