/*
Theme Name: The Thread
Theme URI: https://thethread.wedlakebell.com
DESCRIPTION: Wedlake Bell / The Thread custom Wordpress theme
Author: Michael Stott / realityhouse.co.uk
Author URI: https://realityhouse.co.uk
Version: 0.1
*/

/** reset **/
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video,button{border:0;outline: none;font-size:100%;font:inherit;background: transparent; vertical-align:baseline;margin:0;padding:0}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}
body{line-height:1; -webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}
ol,ul{list-style:none}
blockquote,q{quotes:none}
blockquote:before,blockquote:after,q:before,q:after{content:''; content:none;}
table{border-collapse:collapse;border-spacing:0}

@font-face {
    font-family: 'DM Sans';
    src: url('/wp-content/themes/RH-WB-thread/fonts/DMSans-Italic.woff2') format('woff2'),
        url('/wp-content/themes/RH-WB-thread/fonts/DMSans-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('/wp-content/themes/RH-WB-thread/fonts/DMSans-Regular.woff2') format('woff2'),
        url('/wp-content/themes/RH-WB-thread/fonts/DMSans-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('/wp-content/themes/RH-WB-thread/fonts/DMSans-Bold.woff2') format('woff2'),
        url('/wp-content/themes/RH-WB-thread/fonts/DMSans-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('/wp-content/themes/RH-WB-thread/fonts/DMSans-BoldItalic.woff2') format('woff2'),
        url('/wp-content/themes/RH-WB-thread/fonts/DMSans-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('/wp-content/themes/RH-WB-thread/fonts/DMSans-MediumItalic.woff2') format('woff2'),
        url('/wp-content/themes/RH-WB-thread/fonts/DMSans-MediumItalic.woff') format('woff');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('/wp-content/themes/RH-WB-thread/fonts/DMSans-Medium.woff2') format('woff2'),
        url('/wp-content/themes/RH-WB-thread/fonts/DMSans-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Melange';
    src: url('/wp-content/themes/RH-WB-thread/fonts/melange-bold-webfont.ttf');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
  --white: #fff;
  --brown: #2C2A29;
  --tan: #D9BBA5;
  --tan-light: #F5EEE8;
  --red: #AB2328;
  --gold: #9D8B60;
  --dmsans: "DM Sans", sans-serif;
  --melange: "Melange", serif;
}

@view-transition {navigation: auto;}

* {
    font-family: var(--dmsans);
    color: var(--brown);
}

section {
    padding: 3rem 0;
}

h1 {
    font-family: var(--melange);
    font-size: 2.75rem;
    line-height: 3.1rem;
    letter-spacing: 2%;
    text-transform: uppercase;
}

h2 {
    font-family: var(--melange);
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 120%;
    letter-spacing: 5%;
    text-transform: uppercase;
}

h3 {
    font-family: var(--DMSans);
    font-size: 1.125rem;
    line-height: 130%;
    font-weight: 500;
}

p {
    font-size: 0.813rem;
}

a {
    font-family: var(--dmsans);
}

.container {
    max-width: 1440px;
    margin: 0 auto;
}

/* HEADER */

.site-header .site-header__nav {
    border-bottom: 1px solid var(--red);
    padding: 9px 24px 6px 24px;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.site-header .site-header__nav nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

.site-header .site-header__nav nav ul li {
    margin: 0;
    padding: 0;
    line-height: 150%;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.site-header .site-header__nav nav ul li a {
    text-decoration: none;
    padding: 3px 0 2px 0;
    border-bottom: 1px solid transparent;
}

.site-header .site-header__nav nav ul li a:hover {
    border-color: var(--brown);
}

.site-header .site-header__inner {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--red);
}

.site-header .site-header__branding {
    display: block;
    text-align: center;
    position: relative;
}

.site-header .site-header__branding a img {
    vertical-align: middle;
}

.site-header .site-header__branding .site-header__icon {
    position: absolute;
    left: 1.5rem;
}

/* HERO */

.home-hero {
    height: 650px;
    background-blend-mode: multiply;
    margin-top: 0;
    padding: 0;
}

.home-hero .home-hero__content {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(47, 47, 47, 0.5) 0%, rgba(255, 255, 255, 0) 80%);
}

.home-hero .home-hero__content h1 {
    max-width: 450px;
    color: var(--white);
}

/* ARTICLES */
.home-articles .container {
    display: flex;
    Justify-content: space-between;
    gap: 30px;
}

.home-articles .container .featured.article,
.home-articles .container .article-grid {
    border-top: 1px solid var(--red);
}

.home-articles .container h2 {
    padding: 2rem 0;
}

.home-articles .container .featured.article {
    width: 60%;
}

.home-articles .container .article-grid {
    width: 40%;
    border-bottom: 1px solid var(--red);
    padding-bottom: 1rem;
}

.home-articles .article-grid__container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article__details {
    display: flex;
    flex-direction: column;
}

.article-date {
    color: var(--red);
    text-transform: uppercase;
}

.article-author {
    color: var(--red);
    font-weight: bold;
    text-transform: uppercase;
}

.article__details p {
    line-height: 150%;
    letter-spacing: 10%;
}

.home-articles a,
.article__details a {
    text-decoration: none;
}

.article__title {
    padding-top: 0.5rem;
}

.home-articles .featured.article__title {
    font-size: 1.875rem;
    line-height: 121%;
    letter-spacing: -1%;
    padding-bottom: 1rem;
}

.home-articles .article-grid .article {
    display: flex;
    gap: 15px;
}

.home-articles .article-grid .article__details {
    width: 50%;
}

.home-articles .article-grid .view-all-articles {
    margin-top: 20px;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-align: right;
    display: block;
    font-weight: bold;
    text-transform: uppercase;
}

.home-articles .article-grid .article__image {
    width: 50%;
}

.article__image img {
    width: 100%;
    height: auto;
}

.building-safety .section-heading h2 {
    font-size: 1.75rem;
    text-align: center;
    padding-bottom: 2rem;
}

.building-safety .article {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
}

.building-safety .article-author {
    display: none;
}

.building-safety .swiper-button-next,
.building-safety .swiper-button-prev {
    position: relative;
    width: 48px;
    height: 48px;
    top: 0;
    margin-top: 2rem;
    display: inline-block;
}

.building-safety .swiper-button-next::after,
.building-safety .swiper-button-prev::after {
    display: none;
}

.building-safety .swiper-button-next {
    background-image: url('/wp-content/themes/RH-WB-thread/assets/img/arrow-right-grey-dark.svg');
    margin-left: 1rem;
}

.building-safety .swiper-button-prev {
    background-image: url('/wp-content/themes/RH-WB-thread/assets/img/arrow-left-grey-dark.svg');
    margin-right: 1rem;
    left: 0;
}

.construction-phase .container {
    background-color: var(--brown);
}

.construction-phase__grid {
    display: flex;
}

.construction-phase__content {
    width: 50%;
    padding: 2.5rem;
}

.construction-phase__heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.construction-phase__heading h2 {
    color: var(--white);
    font-size: 1.75rem;
}

.construction-phase__heading a {
    color: var(--white);
    text-transform: uppercase;
    font-size: 0.813rem;
}

.construction-phase__articles {
    margin-top: 2rem;
    display: flex;
    flex-direction:column;
    gap: 1rem;
}

.construction-phase__article {
    padding-bottom: 3rem;
    border-bottom: solid 1px #898989;
}

.construction-phase__article h3 a {
    color: var(--white);
    text-decoration: none;
}

.construction-phase__heading span {
    color: #898989;
}

.construction-phase__image {
    width: 50%;
    height: auto;
}

.construction-phase__image img {
    width: 100%;
}

.meet-the-authors.container {
    border-top: solid 1px var(--red);
}

.meet-the-authors h2 {
    font-size: 1.75rem;
    text-align: center;
    padding-bottom: 2rem;
}

.meet-the-authors .people-grid {
    display: flex;
    justify-content: space-evenly;
}

.meet-the-authors .people-grid .person-card {
    width: 14%;
}
.meet-the-authors .people-grid .person-card a {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-decoration: none;
}

.meet-the-authors .people-grid .person-card img {
    width: 80%;
    margin: 0 auto;
    border-radius: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: top;
}

.meet-the-authors .people-grid .person-card .person-card__name {
    color: var(--red);
    text-transform: uppercase;
    text-align: center;
    font-weight: 600;
    line-height: 150%;
    letter-spacing: 10%;
}

.meet-the-authors .people-grid .person-card .person-card__job-title {
    display: none;
}

/* FOOTER */
footer .container {
    max-width: 100%;
}

footer .site-footer__logo-image {
    width: 50%;
    max-width: 644px;
    height: auto;
    padding: 3rem 0;
}

@media all and (min-width: 1025px) {

    .fixed-footer #section_main { position: relative; z-index: 1;       background: var(--white);}
    .fixed-footer #site_footer { position: fixed; left: 0; right: 0; bottom:0; }

        .home.fixed-footer #overall-wrapper { padding-bottom: 100svh !important;}
        .home.fixed-footer #site_footer { height: 100svh; display: flex; flex-direction: column;}
        .home.fixed-footer #site_footer_brand { flex-grow: 1;}
        .home.fixed-footer #site_footer_brand .container { height: 100%;}
        .home.fixed-footer #site_footer_brand #footer_contact { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }

}
#site_footer { background: var(--white);}
#site_footer a { text-decoration: none;}
#site_footer a:hover {text-decoration: underline;}
#site_footer_brand { background: var(--brown); padding: 23px 0; border-bottom: 10px solid var(--gold); }
#site_footer_brand * {color: var(--white);}
#site_footer_brand .container { display: flex; flex-direction: column; }
#site_footer_brand #footer_contact { padding: 150px 0; text-align: center;}
#site_footer_brand #footer_contact p:first-of-type {padding: 0 0 45px 0;}
#site_footer_brand #footer_menu ul, #site_footer_brand #footer_contact ul, #site_footer_legal ul { display: flex; flex-wrap: wrap; gap: 17px; margin:0; padding: 0; list-style: none; list-style-image: none; }
#site_footer_brand #footer_menu ul li, #site_footer_brand #footer_contact ul li, #site_footer_legal ul li { margin: 0; padding: 0; line-height: 100%;}
#site_footer_brand #footer_contact ul { gap: 15px; justify-content: center; max-width: 350px; max-width: 420px; margin: 0 auto;}
#site_footer_brand #footer_contact ul li { }
#site_footer_legal { padding: 16px 0;           padding: 24px 0; }
#site_footer_legal .container { display: flex; justify-content: space-between; gap: 20px 30px; align-items: center; }
#site_footer_legal small { max-width: 740px; display: block;  font-size: 0.625rem; line-height: 18px; }
#site_footer_legal ul { gap: 15px; flex-wrap: nowrap;       gap: 20px; }
#site_footer_legal ul li { line-height: 7px;}
#site_footer_legal ul li img { height: 52px; height: 76px; width: auto; max-width: unset;           height: 163px; height: 85px; width: auto;}
#site_footer_legal ul li.logo_sra iframe { height: 85px; width: 150px !important; }

@media all and (min-width: 580px) {
    #site_footer_brand #footer_menu ul li:not(:first-of-type) { padding-left: 20px; border-left: 1px solid var(--white);}
    #site_footer_brand #footer_contact ul li:not(:first-of-type):not(:last-of-type) { padding-left: 15px; border-left: 1px solid var(--white);}
}
@media all and (min-width: 760px) {
    #site_footer_brand #footer_menu ul li.footer_social { margin-left: auto; padding-left: 0; border: none; }
}

@media all and (min-width: 760px) and (max-width : 1850px) {
    #site_footer_brand #footer_menu ul li.footer_social { width: 100%; text-align: right; }
}

@media all and (min-width: 0px) and (max-width : 1380px) {

    #site_footer_brand #footer_contact { padding: 100px 0;}

    /** .home-loaded #home_banner_logo { top: 35px; }
    .home-loaded #home_banner_h1 h1 { font-size: 2.75rem; } **/

    .home_panel_flex li span strong { font-size: 1.125rem; }

}

@media all and (min-width: 0px) and (max-width : 1300px) {
    #site_footer_legal .container { flex-direction: column;}
    #site_footer_legal small { max-width: 100%; text-align: center;}
    #site_footer_legal ul { flex-wrap: wrap; justify-content: center;}
    #site_footer_legal ul li img { max-width: 100%;}
}

@media all and (min-width: 0px) and (max-width : 760px) {

    #site_footer_brand #footer_menu ul { justify-content: center;}

}