/*
Theme Name: Canadian Contractor Services Child
Theme URI: https://canadiancontractorservices.ca
Description: Child theme for Canadian Contractor Services. All custom CSS and template overrides go here so they survive parent theme updates.
Author: Canadian Contractor Services
Author URI: https://canadiancontractorservices.ca
Template: canadiancontractorservices
Version: 1.0.2
Text Domain: canadiancontractorservices-child
*/

/* ==========================================
   CCS Child Theme - Custom CSS
   ========================================== */

/*
   SERVICE PAGE LIST FIX

   Root cause:
   The parent theme CSS strips list styling globally with rules like:
   * { padding: 0; margin: 0; }
   ul { margin: 0; padding: 0; }
   li, ol { list-style: none; }

   The live Services Type 1 template uses:
   .residential-sec1 = red icon/nav strip under hero
   .residential-sec2 = main ACF content section
   .residential-sec3 = lower ACF/content/contact section

   Restore bullets/numbers only inside actual content sections.
   Do not apply this to the red icon strip, header nav, footer nav, or menus.
*/

/* Restore spacing and marker behavior on content lists */
body.page-template-page-residential-services .residential-sec2 ul,
body.page-template-page-residential-services .residential-sec3 ul {
    list-style-type: disc !important;
    list-style-position: outside !important;
    padding-left: 40px !important;
    margin-top: 1em !important;
    margin-right: 0 !important;
    margin-bottom: 1em !important;
    margin-left: 0 !important;
}

body.page-template-page-residential-services .residential-sec2 ol,
body.page-template-page-residential-services .residential-sec3 ol {
    list-style-type: decimal !important;
    list-style-position: outside !important;
    padding-left: 40px !important;
    margin-top: 1em !important;
    margin-right: 0 !important;
    margin-bottom: 1em !important;
    margin-left: 0 !important;
}

/* Parent theme sets li to list-style:none, so li markers must be restored directly */
body.page-template-page-residential-services .residential-sec2 ul > li,
body.page-template-page-residential-services .residential-sec3 ul > li {
    display: list-item !important;
    list-style-type: disc !important;
    list-style-position: outside !important;
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0.5em !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

body.page-template-page-residential-services .residential-sec2 ol > li,
body.page-template-page-residential-services .residential-sec3 ol > li {
    display: list-item !important;
    list-style-type: decimal !important;
    list-style-position: outside !important;
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0.5em !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Keep header, footer, menus, and red icon strip clean */
body.page-template-page-residential-services header ul,
body.page-template-page-residential-services header ol,
body.page-template-page-residential-services nav ul,
body.page-template-page-residential-services nav ol,
body.page-template-page-residential-services footer ul,
body.page-template-page-residential-services footer ol,
body.page-template-page-residential-services .menu,
body.page-template-page-residential-services .menu ul,
body.page-template-page-residential-services .menu ol,
body.page-template-page-residential-services .menu li,
body.page-template-page-residential-services .sub-menu,
body.page-template-page-residential-services .sub-menu li,
body.page-template-page-residential-services .residential-sec1 ul,
body.page-template-page-residential-services .residential-sec1 ol,
body.page-template-page-residential-services .residential-sec1 li {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Basic paragraph spacing inside service content after parent reset */
body.page-template-page-residential-services .residential-sec2 p,
body.page-template-page-residential-services .residential-sec3 p {
    margin-bottom: 1em !important;
}