/*
 * Homepage SEO block (CMS static block: homepage_seo_digital_signage_brisbane)
 *
 * Everything is scoped to .bds-seo so nothing else on the home page changes.
 * The block content itself is plain h2 / h3 / p / ul, so it stays editable in
 * the Magento WYSIWYG. Type and colours follow the sections either side of it
 * (Helvetica, black headings, #ed1c24 red). Buttons use the orange of the
 * "Call us now" button further up the home page.
 */

.bds-seo {
    /* grows with its content: no fixed height, no clipping, no inner scrollbar */
    height: auto;
    max-height: none;
    overflow: visible;
    /* keeps the heading clear of the fixed site header when the section is linked to directly */
    scroll-margin-top: 50px;
    padding: 60px 0 70px;
    border-top: 1px solid #e6e6e6;
    background: #fff;
    color: #333;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Section headings: a rule above separates each product category */
.bds-seo h2 {
    margin: 40px 0 18px;
    padding: 40px 0 0;
    border-top: 1px solid #e6e6e6;
    color: #000;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    text-transform: none;
}

.bds-seo h2:after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin-top: 14px;
    background: #ed1c24;
}

/* The opening heading is centred like the other section titles on the page */
.bds-seo h2:first-child {
    max-width: 980px;
    margin: 0 auto 28px;
    padding-top: 0;
    border-top: 0;
    font-size: 34px;
    line-height: 1.2;
    text-align: center;
}

.bds-seo h2:first-child:after {
    margin-left: auto;
    margin-right: auto;
}

.bds-seo h3 {
    margin: 28px 0 10px;
    color: #000;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
}

.bds-seo p {
    margin: 0 0 14px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
}

/* Benefit and application lists: bold title, then one line of explanation */
.bds-seo ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 32px;
    margin: 8px 0 28px;
    padding: 0;
    list-style: none;
}

.bds-seo li {
    float: none;
    margin: 0;
    padding: 2px 0 2px 16px;
    border-left: 3px solid #ed1c24;
    font-size: 16px;
    line-height: 1.55;
    list-style: none;
}

.bds-seo li strong {
    display: block;
    margin-bottom: 3px;
    color: #000;
    font-size: 17px;
    line-height: 1.35;
}

.bds-seo a,
.bds-seo a:visited {
    color: #d1131b;
    text-decoration: underline !important;
}

.bds-seo a:hover,
.bds-seo a:focus {
    color: #000;
}

/* "View our ..." links to each product category */
.bds-seo a.bds-seo-button {
    display: inline-block;
    margin: 8px 10px 0 0;
    padding: 13px 24px;
    border: 2px solid #ff6600;
    border-radius: 3px;
    background: #ff6600;
    background: linear-gradient(180deg, #ff7b00 0%, #ff6600 100%);
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none !important;
}

.bds-seo a.bds-seo-button,
.bds-seo a.bds-seo-button:visited {
    color: #fff;
}

.bds-seo a.bds-seo-button:hover,
.bds-seo a.bds-seo-button:focus {
    background: linear-gradient(180deg, #ff9c33 0%, #ff7b00 100%);
    color: #fff;
}

/* "Request a quote" sits beside it and jumps down to the enquiry form */
.bds-seo a.bds-seo-button-quote,
.bds-seo a.bds-seo-button-quote:visited {
    background: #fff;
    color: #000;
}

.bds-seo a.bds-seo-button-quote:hover,
.bds-seo a.bds-seo-button-quote:focus {
    background: #ff6600;
    color: #fff;
}

@media (max-width: 991px) {
    .bds-seo {
        padding: 50px 0 60px;
    }

    .bds-seo ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bds-seo h2 {
        margin-top: 34px;
        padding-top: 34px;
        font-size: 25px;
    }

    .bds-seo h2:first-child {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .bds-seo {
        padding: 40px 0 48px;
        font-size: 16px;
    }

    .bds-seo p {
        font-size: 16px;
    }

    .bds-seo ul {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bds-seo h2 {
        font-size: 22px;
    }

    .bds-seo h2:first-child {
        font-size: 24px;
    }

    .bds-seo h3 {
        font-size: 19px;
    }

    .bds-seo a.bds-seo-button {
        display: block;
        margin-right: 0;
        text-align: center;
    }
}
