/* 1. Base Footer Card & Utility Styles - MATCHING CA/US MODEL */
.site-footer__card{background:#fff;border-radius:8px;padding:2.5rem 2.5rem 1.5rem;box-shadow:0 4px 20px rgba(0,0,0,.12)}.site-footer__card,.site-footer__card address,.site-footer__card a,.site-footer__card span{color:#4d4d4d!important}[data-context=dark] .site-footer__card .heading,[data-context=dark] .site-footer__card .heading span,[data-context=dark] .site-footer__card address,[data-context=dark] .site-footer__card a,[data-context=dark] .site-footer__card .inline-icon{color:#4d4d4d!important}
.site-footer__intro{font-size:.8125rem;color:#9fafbc;border-bottom:1px solid #e0e4eb;text-transform:uppercase;letter-spacing:.05em;font-weight:700;padding-bottom:1rem;margin-bottom:1rem}
.site-footer__heading{display:block!important;color:#1e2534!important}.site-footer__intro{color:#1e2534!important}.site-footer__card .heading,.site-footer__card .heading span,.site-footer__card address, .site-footer__card a, .site-footer__card .inline-icon{color:#4d4d4d!important}
.u-svg-container--logo img{position:static!important;width:100%!important;height:auto!important}.masthead__logo a{width:180px!important}.masthead__logo{display:flex!important;align-items:center!important}.u-svg-container--logo{display:flex!important;align-items:center!important;padding-bottom:0!important;height:auto!important}@media screen and (min-width:28.125em){.masthead__logo a{width:216px!important}}@media print,screen and (min-width:64em){.masthead__logo a{width:280px!important}}@media screen and (min-width:80em){.masthead__logo a{width:300px!important}}.site-footer__logo{max-width:240px;width:240px;display:block;margin-bottom:1.5rem}

/* 2. Global Contextual Color Fixes */
[data-context=dark] .heading,[data-context=dark] .heading span,[data-context=dark] .heading--drill span{color:#fff!important}
[data-context=light] .heading--drill span,[data-context=light] .heading--drill{color:#4d4d4d!important}
[data-context=light] .heading--drill:before,[data-context=light] .heading--drill:after{background:#3b4a67!important}
[data-context=light] .heading--stacked:before,[data-context=light] .heading--stacked:after{background:#3b4a67!important}
[data-context=dark] .heading--drill:before,[data-context=dark] .heading--drill:after{background:#fff!important}
[data-context=dark] .heading--stacked:before,[data-context=dark] .heading--stacked:after{background:#fff!important}
.u-svg-container--footer-logo img{position:static!important;width:100%!important;height:auto!important}

/* 3. Layout Spacing Fixes */
.content-block{border-top:0!important}.not-front .content-block:first-child+.content-block--has-heading:not(.content-block--has-decoration):not(.content-block--has-shadow):not(.content-block--dark){border-top:0!important}.not-front .content-block--has-decoration+.content-block--has-background:not(.content-block--dark){border-top:0!important}

/* 4. Article Image Fixing (Handles 100px Baked-in Padding) */
.article__image{background-size:cover!important;background-position:center!important;background-color:#fff!important;box-sizing:border-box!important;}.article__image--is-logo{background-size:contain!important;}
.sidebar__posts .article__image{height:80px!important;background-size:cover!important;background-position:center!important;padding:0!important;}

/* 5. Header Highlight Link (Request a Quote) */
.header-utility__item--highlight>a,.header-utility__item--highlight a{background:#aa9767!important;color:#fff!important;padding:.5rem 1.4rem!important;margin-left:0!important;transition:background 0.2s!important;border:none!important}
.header-utility__item--highlight>a:hover,.header-utility__item--highlight a:hover,.header-utility__item--highlight>a:focus{background:#3b4a67!important}
.header-utility__item--highlight span{color:#fff!important}
.header-utility__item--highlight{padding-left:0!important;margin-left:0!important;}

/* 6. Site Footer Cleanup */
.site-footer__card{padding:2.5rem 2.5rem 1.5rem!important}
.site-footer__contact{height:auto!important;min-height:auto!important;position:relative!important;overflow:visible!important;}
.site-footer__colophon{padding-top:1.2rem!important;padding-bottom:1.2rem!important;margin-top:0!important;position:relative;z-index:1}
.site-footer__background{margin:0!important;padding:0!important;position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;height:100%!important;}

/* 7. Button & Link Cleanup (Remove Arrows/Underlines) */
.wysiwyg .button, .article__content .button{background:#aa9767!important;color:#fff!important;padding:0.875rem 2rem!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:0.08em!important;border:none!important;display:inline-block!important;text-decoration:none!important;box-shadow:none!important;position:relative!important;}
.wysiwyg .button:hover, .article__content .button:hover{background:#3b4a67!important;}
.wysiwyg a.button::before, .wysiwyg a.button::after, .article__content a.button::before, .article__content a.button::after {display:none!important;content:none!important;}

/* 8. Contact Page (US Sidebar content might vary, but ID 123 is standard on CA - US might be different) */
.ed-contact-section{padding:12rem 0!important;}
.page-template-contact .page-content{padding-left:0!important;padding-right:0!important;}
.ed-contact-form__submit .button::before{display:none!important;content:none!important;}

/* 9. News & Media AJAX Fixes */
.posts-page .article__image-wrapper { height: 200px; overflow: hidden; background: #fff; display: flex; align-items: stretch; justify-content: center; }
.posts-page .article__image-wrapper img { object-fit: cover; width: 100%; height: 100%; transition: transform 0.3s ease; }
.article__breadcrumb{margin-bottom:1.5rem;}.article__breadcrumb a{color:#3b4a67;font-weight:600;}.article__breadcrumb a:hover{color:#aa9767;}.article__breadcrumb .hny-svg{fill:#3b4a67;width:1.25em;height:1.25em;vertical-align:-3px;margin-right:0.25rem;}
.ed-contact-form__submit .button{background:#aa9767!important;color:#fff!important;border:none!important;padding:1rem 3rem!important;font-size:.875rem!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.08em!important;cursor:pointer!important;transition:background .2s!important;}.ed-contact-form__submit .button:hover{background:#3b4a67!important;}




/* REFINED FOOTER - SHAPES TO BOTTOM, CARD ON TOP (WHITE BG) */
.site-footer { background: #fff !important; }
.site-footer__contact { position: relative !important; padding-bottom: 0 !important; margin-bottom: 0 !important; background: #fff !important; overflow: visible !important; }
.site-footer__background { position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100% !important; height: 100% !important; z-index: 1 !important; display: block !important; }
.site-footer__content { position: relative !important; z-index: 5 !important; padding-top: 5rem !important; padding-bottom: 0 !important; }
.site-footer__card { margin-bottom: -10px !important; position: relative !important; z-index: 20 !important; box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important; background: #fff !important; }
.site-footer__colophon {   background: #4f4c4c !important; position: relative !important; z-index: 10 !important; margin-top: 0 !important; border-top: none !important; padding: 1.25rem 0 !important; }
.ed-contact-section__inner{max-width:900px!important;margin:0 auto!important;padding:0 2rem!important;}.icon-list__icon .hny-svg{fill:#aa9767!important}.icon-list__icon .hny-svg use{fill:#aa9767!important}
.csr-value-icon .hny-svg{fill:#aa9767!important}

/* 10. Rig Focal Point Fix for TSI 150 Mini-Sonic (R-64, R-77, R-79) */
#tsi-150-mini-sonic .u-photo-bg,
#tsi-150-mini-sonic-r77 .u-photo-bg,
#tsi-150-mini-sonic-r79 .u-photo-bg,
.postid-1651 .u-photo-bg,
.postid-2149 .u-photo-bg,
.postid-2152 .u-photo-bg,
.postid-2153 .u-photo-bg {
    background-position: bottom center !important;
}


/* 11. Hero Height Override */
.hero {
    height: 85vh !important;
    min-height: 450px;
}


/* 12. Reduce Homepage Hero Overlap */
.home.has-hero .content-block:first-child.content-block--has-decoration {
    margin-top: -130px !important;
}
@media screen and (min-width: 1024px) {
    .home.has-hero .content-block:first-child.content-block--has-decoration {
        margin-top: -270px !important;
    }
}
@media screen and (min-width: 1650px) {
    .home.has-hero .content-block:first-child.content-block--has-decoration {
        margin-top: -360px !important;
    }
}


/* 13. Company Profile Page Hero Styles (ID 404) */
.page-id-404 .hero {
    height: 50vh !important;
}
.page-id-404 .hero__bg {
    background-position: center 60% !important;
}

/* Service Pages Hero Height */
body.page-id-107 .hero, body.parent-pageid-107 .hero {
    min-height: 50vh !important;
    height: 50vh !important;
}

/* Sonic Drilling Hero BG */
body.page-id-153 .hero__bg {
    background-position: center center !important;
}

/* R-5 First Image Background Position */
#foremost-explorer-1500-buggy-drill .u-photo-bg[style*='R5-Foremost-Explorer'] {
    background-position: left center !important;
}

/* Mud / Air Rotary Drilling Hero BG */
body.page-id-161 .hero__bg {
    background-position: center center !important;
}

/* Reverse Circulation Hero BG */
body.page-id-1733 .hero__bg {
    background-position: center center !important;
}
