/* ============================================================================
   Torrington hero ("section_banner") — ported from the D7 torrington_advice
   theme (css/global.css, lines 17–316). REVIEW COPY — not yet wired in.

   To activate: add `css/_torrington-hero.css` under global-styling > css >
   component in tsb_advice.libraries.yml (after style.css).

   Notes:
   - All layout rules are scoped under .section_banner, so they override
     Bootstrap 5 (.row/.col/.container/.btn-primary) without leaking.
   - Fonts: Typekit (caecilia) + Google (Open Sans), imported below.
   - Hero cover images are <img> in the pasted block HTML (bckcover-image-sm/
     -md/-xl), not CSS — no url() paths here. Point those <img src> at
     /themes/.../tsb_advice/images/<section>-sm|md|xl.jpg when pasting blocks.
   - Unscoped utility classes used by the markup: .full-width, .dark,
     .cat-heading, h2.alt — low collision risk, watch if the page restyles.
   ============================================================================ */
@import url("https://use.typekit.net/bht6ufs.css");
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800);

/* Branding Hero ------------------------------------------------------------ */
.content div.section_banner:first-child {
    margin-bottom: -2px;
}
.section_banner.tsb-ovals {
    overflow: hidden;
    background-color: #007D68;
}
/* The old site uses 80px top/bottom on EVERY hero (front page included); its
   taller front-page hero comes from content, not padding. The 128px we had here
   inflated every hero, so all heroes are 80px now. */
.section_banner {
    padding-bottom: 80px !important;
    padding-top: 80px !important;
}
/* All heroes carry stray <br> spacers as direct children of .container, inflated
   by the new build's larger line-height; drop them so heights match the old site. */
.section_banner .container > br { display: none; }
/* The front-page hero additionally carries a decorative gradient-filler <p> and a
   content <br> whose margins/line-height stretched it to a fixed over-tall block
   that didn't track width. Drop them so it is content-driven like the old site. */
body.path-frontpage .section_banner > p { display: none; }
.dark {
    color: #fff;
}
.full-width {
    width: 100vw;
    position: relative;
    margin-left: -50vw;
    left: 50%;
}
.section_banner .bckcover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 1;
}
/* Cap the hero's inner container at the 1600px site width and centre it, so the
   hero TEXT stays within the content column on wide screens. The banner itself
   still bleeds full-width via .section_banner.full-width (100vw). */
.section_banner .container {
    position: relative;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}
.section_banner.tsb-ovals .tsb-oval {
    position: absolute;
    display: block;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -ms-transition: all 1s ease;
    -o-transition: all 1s ease;
    transition: all 1s ease;
    opacity: .8;
    width: 2500px;
    height: auto;
    z-index: 0;
}
.section_banner.tsb-ovals .tsb-oval1 {
    right: 35%;
    top: -230%;
}
.section_banner.tsb-ovals .tsb-oval2 {
    right: 40%;
    top: -230%;
    transform: rotate(-1deg);
}
.section_banner.tsb-ovals .tsb-oval3 {
    right: 35%;
    opacity: 1;
    top: -250%;
    transform: rotate(10deg);
}
.section_banner.tsb-ovals .tsb-oval4 {
    right: 20%;
    opacity: .4;
    top: -250%;
    transform: rotate(-60deg);
}
.section_banner .row.left {
    flex-direction: row-reverse;
}
.section_banner .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: 15px;
    margin-top: 0px;
}
@media screen and (max-width : 767px) {
    .section_banner .row {
        margin-left: 10%;
        justify-content: center;
        width: 80%;
    }
}
@media screen and (min-width : 768px) {
    .section_banner .row {
        margin-left: 30px;
        width: 50%;
    }
}
.section_banner .image {
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.section_banner .col {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
}
.section_banner .content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    z-index: 2;
    width: 100%;
}
/* The pasted .row splits 50/50 via Bootstrap .col-md-6, cramping the copy into
   half the row. The .col.image is an empty spacer (the photo is the absolute
   .bckcover-image), so let the content span the full row like the D7 reference. */
.section_banner .row .col-md-6.content { flex: 0 0 100%; max-width: 100%; }
.section_banner .row .col.image { display: none; }
.cat-heading {
    text-transform: uppercase;
    font-family: caecilia, sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 1.1875rem;
    display: inline-block;
    line-height: 1.2;
    margin-bottom: 16px;
}
.cat-heading:after {
    content: '';
    display: block;
    height: 2px;
    width: 100%;
    background-color: #CAB64B;
}
h2.alt {
    font-family: caecilia, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 3.125rem;
    line-height: 1;
    color: #fff;
}
.section_banner p {
    font-size: 1.0625rem;
    line-height: 1.5;
    font-family: open-sans, sans-serif;
    font-weight: 400;
    font-style: normal;
    padding-bottom: 20px;
}
.section_banner p.card-text { padding-bottom: 0px; }
.section_banner .content a.btn {
    width: 100%;
    margin-bottom: 8px;
    margin-top: 8px;
}
.dark a.btn {
    color: #0D252D;
    text-decoration: none;
}
.section_banner .btn {
    color: #0D252D;
    background-color: #CAB64B;
    border: none;
    text-transform: uppercase;
    font-size: .9375rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-style: normal;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}
.section_banner .btn-primary {
    background-color: #CAB64B;
    color: #0D252D;
    border-color: #CAB64B;
    padding: 15px 25px;
}

.bckcover-image br { display: none; }
@media screen and (max-width : 767px) {
    .bckcover-image-xl { display: none; float: right; width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
    .bckcover-image-md { display: none; float: right; width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
    .bckcover-image-sm { display: block; float: right; width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
    .gradient-filler { display: block; float: right; width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
    .section_banner.tsb-ovals .bckcover-image { opacity: .4; }
}
@media (min-width : 768px ) and (max-width : 1199px) {
    .bckcover-image-xl { display: none; float: right; width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
    .bckcover-image-md { display: block; float: right; width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
    .bckcover-image-sm { display: none; float: right; width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
    .gradient-filler { display: block; float: right; width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
    .section_banner.tsb-ovals .bckcover-image { opacity: 1; }
}
@media screen and (min-width : 1200px) {
    .bckcover-image-xl { display: block; float: right; width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
    .bckcover-image-md { display: none; float: right; width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
    .bckcover-image-sm { display: none; float: right; width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
    .gradient-filler { display: block; float: right; width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
    .section_banner.tsb-ovals .bckcover-image { opacity: 1; }
}
@media screen and (max-width : 767px) {
    .section_banner.tsb-ovals .tsb-oval {
        position: absolute;
        display: block;
        -webkit-transition: all 1s ease;
        -moz-transition: all 1s ease;
        -ms-transition: all 1s ease;
        -o-transition: all 1s ease;
        transition: all 1s ease;
        opacity: .8;
        width: 1500px;
        height: auto;
        z-index: 0;
    }
    .section_banner.tsb-ovals .tsb-oval1 {
        right: -200%;
        top: -40%;
        opacity: .2;
        transform: rotate(-20deg);
    }
    .section_banner.tsb-ovals .tsb-oval2 {
        right: -100%;
        top: 45%;
        opacity: .2;
        transform: rotate(-1deg);
    }
    .section_banner.tsb-ovals .tsb-oval3 {
        right: -60%;
        top: -80%;
        opacity: .2;
        transform: rotate(-20deg);
    }
    .section_banner.tsb-ovals .tsb-oval4 {
        right: -50%;
        top: -50%;
        opacity: .2;
        transform: rotate(-60deg);
    }
}
@media (min-width : 768px ) and (max-width : 991px) {
    .section_banner.tsb-ovals .tsb-oval {
        position: absolute;
        display: block;
        -webkit-transition: all 1s ease;
        -moz-transition: all 1s ease;
        -ms-transition: all 1s ease;
        -o-transition: all 1s ease;
        transition: all 1s ease;
        opacity: .8;
        width: 2500px;
        height: auto;
        z-index: 0;
    }
    .section_banner.tsb-ovals .tsb-oval1 {
        right: 35%;
        top: -230%;
    }
    .section_banner.tsb-ovals .tsb-oval2 {
        right: 40%;
        top: -230%;
        transform: rotate(-1deg);
    }
    .section_banner.tsb-ovals .tsb-oval3 {
        right: 35%;
        opacity: 1;
        top: -250%;
        transform: rotate(10deg);
    }
    .section_banner.tsb-ovals .tsb-oval4 {
        right: 20%;
        opacity: .4;
        top: -250%;
        transform: rotate(-60deg);
    }
}
@media screen and (min-width : 992px ) {
    .section_banner.tsb-ovals .tsb-oval {
        position: absolute;
        display: block;
        -webkit-transition: all 1s ease;
        -moz-transition: all 1s ease;
        -ms-transition: all 1s ease;
        -o-transition: all 1s ease;
        transition: all 1s ease;
        opacity: .8;
        width: 2500px;
        height: auto;
        z-index: 0;
    }
    .section_banner.tsb-ovals .tsb-oval1 {
        right: 35%;
        top: -230%;
    }
    .section_banner.tsb-ovals .tsb-oval2 {
        right: 40%;
        top: -230%;
        transform: rotate(-1deg);
    }
    .section_banner.tsb-ovals .tsb-oval3 {
        right: 35%;
        opacity: 1;
        top: -250%;
        transform: rotate(10deg);
    }
    .section_banner.tsb-ovals .tsb-oval4 {
        right: 20%;
        opacity: .4;
        top: -250%;
        transform: rotate(-60deg);
    }
}
