/*** Write your CSS structure here. ***/

/* Shrink the "About us" footer text widget on mobile so it doesn't dominate the half-width column */
@media (max-width: 767px) {
    .site-footer #text-1.widget_text .textwidget p {
        font-size: 12px;
        line-height: 1.6;
    }
}

/* Hide the footer "Navigation" menu widget on mobile - redundant with the hamburger menu right above it */
@media (max-width: 767px) {
    .site-footer > .container > .row > .col-xs-6:nth-child(2) {
        display: none;
    }
}

/* Hide the "About Us" / "Get In Touch" widget titles on mobile - just a heading label, not needed there */
@media (max-width: 767px) {
    .site-footer #anpsimages-2.widget-container > .widget-title,
    .site-footer #text-9.widget-container > .widget-title {
        display: none;
    }
}

/* Shrink oversized inline-page body copy on mobile (About Us, Practice Areas, Team, Contact).
   Overrides the Customizer's "Additional CSS" .maintext p rule (font-size:1.4em = 19.6px off a 14px
   base) which loads after this file. Note: this theme sets html{font-size:62.5%}, so 1rem = 10px
   here, not the usual 16px -- 1.4rem is the relative equivalent of 14px on this site. */
@media (max-width: 767px) {
    .maintext p {
        font-size: 1.6rem !important;
    }
}

/* Consistent, larger hero banner image on mobile inner pages (About Us, Practice Areas, Team,
   Contact) + a small consistent accent strip beneath it instead of the varying-height blue bar.
   These two rows share the same VC row class across all four pages (vc_custom_1757984067497 =
   the hero image row, vc_custom_1758018537044 = the blue spacer row beneath it), which is what
   makes a single shared rule here apply consistently everywhere - the home page uses neither
   class (it has a slider instead), so it's untouched. */
@media (max-width: 767px) {
    .vc_custom_1757984067497 img.vc_single_image-img {
        width: 100% !important;
        height: 220px !important;
        object-fit: cover !important;
        display: block !important;
    }
    html body .vc_custom_1758018537044 .vc_empty_space {
        height: 12px !important;
        min-height: 12px !important;
        max-height: 12px !important;
    }
}

/* Footer OFFICE block. The footer .textwidget p is 1.2em (~16.8px). Location headings (Bridgewater /
   Halifax Office) stay at that size; the address lines under them are 1.2rem = 12px on this site (html is 62.5%),
   All screen sizes. */
.site-footer #text-9 .textwidget .office-address {
    display: block;
    font-size: 1.2rem;
    line-height: 1.5;
    margin-top: 2px;
}
.site-footer #text-9 .textwidget p.office-loc {
    margin-bottom: 14px;
}
