
/**
 * common css for all pages
 *
 * @since 3.0.0
 * @author Keith Wheatley
 * @package thefiresurgery.com
*/

/*  tfs variables
========================================================================= */
body {
    --tfs-green-dark: #005828;
    --tfs-green-light: #00b04e; /* rgb(0,176,78) */
    --tfs-green-faded: rgba(0,176,78, 0.3);
}
body {
    margin-top: 160px;      /* space for headroom header */
    padding-bottom: 360px;  /* space for sticky footer -height plus padding above footer */
    font-family: Arial, Helvetica,sans-serif;
    font-size: 18px;
    letter-spacing: 0.4px;
    line-height: 1.4;
    color: #505050;
}
html {
    /* for sticky footer */
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
    word-break: break-word;
    overflow-wrap: break-word;
}
a {
    text-decoration: none;
    outline: none;
    cursor: pointer;
    color: var(--tfs-green-dark);
}

a:hover {
    color: var(--tfs-green-light);
}
img {
    border: none;
    text-decoration: none;
    outline: none;
    width:100%;
}

/*  common styles
========================================================================== */
.item-container {
    border-bottom: 1px solid var(--tfs-green-light);
    margin: 10px 0 10px 0;
}
.item-heading-box {
    max-width: 1068px;
    margin: auto;
    padding: 20px 5% 30px 5%;
    display:grid;
    grid-template-columns: 75% 25%;
    align-items: center;
    justify-items: left;
}
.item-heading {
    padding: 0 0 10px 0;
    font-family: 'Ubuntu', sans-serif;
    color: var(--tfs-green-light);
    letter-spacing: 1.2px;
    font-size: 30px;
}
.item-caption {
    padding: 20px 0 40px 0;
    font-family: 'Ubuntu', sans-serif;
    letter-spacing: 1.2px;
    font-size: 18px;
}
.item-heading-image {
    justify-self: center;
}
.item-heading-image img{
    max-width: 300px;
    margin: auto;
}
.item-text {
    padding: 0 5% 5% 5%;
    max-width: 1068px;
    margin: auto;
}

/* common page styles
========================================================================== */
.page-heading {
    padding: 30px 2% 0 2%;
    text-align: left;
    font-family: 'Ubuntu', sans-serif;
    color: var(--tfs-green-light);
    letter-spacing: 1.2px;
    font-size: 30px;
}
.page-item {
    padding: 5%;
    max-width: 1068px;
    margin: auto;
    display: grid;
    grid-template-columns: 40% 60%;
    column-gap: 3%;
}
.page-item-details{
    padding-left: 5%;
    grid-row:1;
    grid-column: 1 / 2;
}
.page-item-image {
    grid-row:1;
    grid-column: 2 / 3;
}
.page-item-text {
    padding: 3% 5% 3% 5%;
    max-width: 1068px;
    margin: auto;
    grid-row: 2;
    grid-column: 1 / 3;
}
.page-item-caption {
    font-family: 'Ubuntu', sans-serif;
    letter-spacing: .5px;
    font-size: 18px;
    padding: 20px 0 50px 5%;
}
@media (max-width: 740px) {
    .page-item {
        padding-left:0;
        padding-right:0;
        grid-template-columns: 1fr;
    }
    .page-item-details{
        grid-row:1;
        grid-column: 1 / 3;
    }
    .page-item-image {
        grid-row:2;
        grid-column: 1 / 3;
    }
    .page-item-text {
        grid-row:3;
    }
}

/*  images & slideshows
========================================================================== */
.image-container {
    position: relative;
    line-height: 0;
}
.image-background{
    background: radial-gradient(circle, #ffffff 70%, #f6f6f6 );
	  border-radius: 6px;
}
.image-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    text-align: right;
    font-size: 12px;;
    line-height: 1;
    padding: 2px 4px 3px 4px;
    color: white;
    background: rgba(0, 0, 0, 0.4);
	  border-radius: 0 0 6px 0;
    z-index: 100;
}
.slide-image {
    position: absolute;
    top:0;
    bottom:0;
    left: 0;
    right:0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slide-image.active {
    opacity: 1;
}
.slide-first {
    position: relative;
}
.aspect {
    width: 100%;
    height: 0;
    position: relative;
    overflow: hidden;
}
.ratio-4x3 {
    padding-bottom: 75%;
}
.ratio-2x1 {
    padding-bottom: 50%;
}
.ratio-1x1 {
    padding-bottom: 100%;
}

/* header
========================================================================== */
header{
    height: 160px;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    padding: 0 ;
    background-color: #ffffff;
    z-index: 999;
    display: grid;
    grid-template-columns: 1fr 160px;
}
header .logo{
    border-top: 2px solid var(--tfs-green-light);
    border-bottom: 2px solid var(--tfs-green-light);
    margin: 10px 0 10px 0;
}
header .logo-link{
    float: right;
    width:140px;
    padding: 13px 20px 10px 0;
    cursor: pointer;
}
header .logo:hover{
    opacity: 0.9;
}
header nav{
    border-top: 2px solid var(--tfs-green-light);
    border-bottom: 2px solid var(--tfs-green-light);
    margin: 10px 0 10px 0;
    display: grid;
    align-items: center;
}
header nav .nav-burger {
    padding: 10px 0 10px 20px;
    color: var(--tfs-green-dark);
    display:none;
}
header nav .nav-burger i{
    font-size: 36px;
}
header nav .nav-items{
    max-width: 920px;
    padding-left: 20px;
    display: grid;
    grid-template-columns: repeat(5, 16%);
    justify-content: left;
    font-family: 'Open Sans', Arial, Helvetica,sans-serif;
    font-size: 22px;
    font-weight: 600;
}
header nav .nav-items a{
    color: var(--tfs-green-dark);
    transition-property: color;
    transition-duration: 0.5s;
}
header nav a.active, header nav a:hover{
    color: var(--tfs-green-light);
}
@media (max-width: 920px) {
    header nav .nav-items{
      grid-template-columns: repeat(5, 20%);
    }
}
@media (max-width: 740px) {
    body {
        margin-top: 140px;
    }
    body.with-burger{
        margin-top: 312px;
    }
    header.with-burger{
        height: 312px;
    }
    header .logo-link{
        width:120px;
    }
    header nav .nav-burger {
        display:block;
    }
    header nav .nav-items{
        grid-template-columns: 1fr;
        text-align: left;
        padding:0 0 20px 50px;
    }
    header nav .nav-items a{
        padding-bottom:12px;
    }
    header nav .nav-items.hide {
        padding-bottom: 12px;
        display:none;
    }
}
.headroom {
    will-change: transform;
    transition: transform 400ms linear;
}
.headroom--pinned {
    transform: translateY(0%);
}
.headroom--unpinned {
    transform: translateY(-100%);
}

/* index page - hero
========================================================================== */
.index .hero {
    position: relative;
    width:100%;
    height: calc(100vh - 160px); /* vh minus header */
}
.index .hero .hero-image{
    position: absolute;
    width: 100%;
    height: 100%;
    opacity:0;
    transition: opacity 2s ease-in-out;
}
.index .hero .hero-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.index .hero .hero-image.active {
    opacity: 1;
}
.index .hero .hero-testimonial {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    background: radial-gradient(ellipse, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) );
}
.index .hero .hero-testimonial .text{
    width:60%;
    margin: auto;
    font-family: 'Ubuntu', sans-serif;
    font-size: 20px;
    color: #ffffff;
    text-align: center;
    border-radius: 10px;
}
.index .hero .hero-testimonial a{
    color: #e0e0e0;
    border-bottom: dotted 1px #e0e0e0;
}
.index .hero .hero-testimonial a:hover{
    color: #d0d0d0;
}
.index .hero .hero-testimonial.active {
    opacity: 1;
}
.index .hero .hero-testimonial-heading{
    font-size:24px;
    font-weight: bold;
}
.index .hero .hero-arrow {
    position: absolute;
    bottom: 0;
    left: 48%;
    font-size: 40px;
    color: #ffffff;
    z-index: 3;
}
.index .hero .hero-arrow:hover{
    color: #d0d0d0;
}
@media (max-width: 740px) {
    .index .hero .hero-image{
        height: calc(100vh - 140px); /* vh minus header */
    }
    .index .hero .hero-testimonial .text{
        width:90%;
        font-size: 16px;
    }
    .index .hero .hero-testimonial-heading{
        font-size:18px;
    }
}
@media (max-width: 440px) {
    .index .hero .hero-testimonial .text{
        font-size: 12px;
    }
    .index .hero .hero-testimonial-heading{
        font-size:14px;
    }
}

/* index page - main section
========================================================================== */
.index .container {
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    padding-top:2%;
}
.index .text-left {
    grid-column: 1 / span 2;
    padding:0 10% 0 10%;
}
.index .text-right{
    grid-column: 3 / span 2;
    padding:0 10% 0 0;
}
.index .item {
    padding-top:10%;
}
 @media (max-width: 740px) {
     .index .text-right, .index .text-left{
         grid-column: 1 / span 4;
     }
     .index .item {
         padding-top:10%;
     }
     .index .text-left {
         padding:0 3% 0 3%;
     }
     .index .text-right{
         padding:0 3% 0 3%;
     }
 }

/* services page
========================================================================== */
.service-container{
    max-width: 1200px;
    margin: auto;
    padding-top: 3%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
}
.service, .service a {
    padding-bottom: 30px;
    color: var(--tfs-green-dark);
    text-align: center;
    font-family: 'Ubuntu', sans-serif;
    letter-spacing: 1.2px;
    font-size: 18px;
}
.service-title {
    width: 100%;
    height: 70px;
}
.service-featured-icon {
    color: var(--tfs-green-light);
    letter-spacing: .5px;
    font-size: 60px;
    padding: 20px 0 40px 8%;
}
.service-icon{
    text-align: center;
    font-size: 7vw;
}
.service-item-heading {
    padding-left: 8%;
}
.faded {
    opacity: 0.8;
    color: var(--tfs-green-faded);
}
.service a:hover{
    color: var(--tfs-green-light);
}
@media (max-width: 1000px) {
  .service-icon {
      font-size: 9vw;
  }
  .service-featured-icon {
      padding-left: 0;
  }
}
@media (max-width: 740px) {
  .service-container{
      grid-template-columns: repeat(2, 1fr);
      margin: 0 6% 0 6%;
      grid-column-gap: 10%;
  }
  .service-icon {
      font-size: 15vw;
  }
  .service-item-heading {
      padding-left: 0;
  }
}

/* projects page
========================================================================== */
.filter {
    padding-top: 15px;
    padding-left: 40px;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 3fr repeat(6, 2fr);
    justify-content: center;
    column-gap: 1%;
}
.filter div{
    padding-top: 15px;
    cursor: pointer;
    line-height: 1.8;
    color: var(--tfs-green-dark);
}
.filter div.active{
    color: var(--tfs-green-light);
}
.filter div:hover{
    color: var(--tfs-green-light);
}
.bullet {
    cursor: pointer;
    height: 24px;
    width: 24px;
    margin: 0 4px -6px 0;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url('../images/tfs-button.png');
    background-repeat: no-repeat;
}
.projects-container{
    padding: 30px 2% 0 2%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 3%;
}
.projects{
    padding: 20px 0 20px 0;
}
.projects-image{
    position: relative;
    line-height: 0;
        background-color: #e0e0e0;
}
.projects-image img{
    height: 100%;
    transition-property: opacity;
    transition-duration: 0.6s;
    opacity: 1;
}
.projects-image-img:hover{
    opacity: 0.8;
}
.projects-title {
    text-align: left;
    font-family: 'Ubuntu', sans-serif;
    letter-spacing: .5px;
    line-height: normal;
    padding-top: 12px;
    height: 50px;
}
@media (max-width: 1400px) {
  .projects-container{
      grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 860px) {
  .projects-container{
      grid-template-columns: repeat(2, 1fr);
  }
  .filter {
      grid-template-columns: repeat(3, 1fr);
  }
  .filter .first {
    grid-column: 1 / 4;
  }
}

/* project page
========================================================================== */
.project-heading-box {
    text-align: left;
    padding-left: 5%;
}
.project-tag {
    font-family: 'Ubuntu', sans-serif;
    letter-spacing: .5px;
    font-size: 18px;
    padding: 25px 0 20px 0;
}
.project-award {
    font-family: 'Ubuntu', sans-serif;
    letter-spacing: .5px;
    font-size: 18px;
    padding: 15px 0 55px 0;
}
.project-text {
    padding: 5%;
    max-width: 1068px;
    margin: auto;
}
.project-images{
    position: relative;
    margin: 0;
    padding: 0;
    line-height: 0;
}
.project-image {
    display: none;
}
.project-image-prev, .project-image-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    margin-top: -22px;
    padding: 24px 16px;
    color: #ffffff;
    background-color: var(--tfs-green-faded);
    font-size: 36px;
    border-radius: 0 20px 20px 0;
    user-select: none;
}
.project-image-prev:hover, .project-image-next:hover{
    color: #eeeeee;
}
.project-image-next {
    right: 0;
    border-radius: 20px 0 0 20px;
}
.project-link {
    padding: 40px 0 0 5%;
}
.project-link a {
    color: var(--tfs-green-dark);
}
.project-link a:hover {
    color: var(--tfs-green-light);
}
@media (max-width: 740px) {
    .project-image-prev, .project-image-next {
        font-size: 26px;
    }
}

/* people page
========================================================================== */
.people-container{
    padding: 30px 2% 0 2%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 3%;
}
.people{
    padding: 20px 0 20px 0;
}
.people-image{
    position: relative;
    line-height: 1;
}
.people-image img{
    height: 100%;
    transition-property: opacity;
    transition-duration: 0.6s;
    opacity: 1;
}
.people-image-img:hover{
    opacity: 0.8;
}
.people-credentials {
    text-align: left;
    letter-spacing: .5px;
    font-size: 14px;
    padding-top: 6px;
}
@media (max-width: 740px) {
  .people-container{
      grid-template-columns: repeat(2, 1fr);
  }
}

/* contact
========================================================================== */
.contact-container {
    max-width: 1200px;
    margin: auto;
    padding: 3% 12% 0 12%;
}
@media (max-width: 740px) {
  .contact-container {
      padding: 5% 3% 0 5%;
  }
}

/* news
========================================================================== */
.news-container {
    max-width: 1200px;
    margin: auto;
    padding: 30px 3% 0 3%;
}
.news-feature {
    border: solid 1px #ddd;
    border-radius: 6px;
    box-shadow: 2px 1px 10px 1px rgba(220,220,220,1);
}
.news-feature-heading {
    padding: 0 0 10px 0;
    font-family: 'Ubuntu', sans-serif;
    color: var(--tfs-green-dark);
    letter-spacing: 1.2px;
    font-size: 26px;
}
.news-feature-details {
    padding: 3% 4% 3% 4%;
    font-size: 16px;
    display: inline-block; /*to stop image dropping out of container */
}
.news-image {
    position: relative;
    width: 38%;
    float:right;
    margin: 0 0 10px 10px;
    line-height: 0;
    cursor: pointer;
}
.news-image-cursor {
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px 5px 3px 5px;
    border-radius: 12px 6px 12px 12px;
    font-size: 18px;
    color: white;
    background: rgba(150, 150, 150, 0.4);
    z-index: 100;
}
.news-item {
    padding: 8px 4px;
    color: #888888;
    display: grid;
    grid-template-columns: 28px 1fr;
}
.news-icon {
    font-size: 28px;
    color: var(--tfs-green-dark);
}
.news-text p {
    margin-block-start: 0;
    margin-block-end: 10px;
}
.news-date {
    font-weight: bold;
    font-style: italic;
    color: #666666;
    font-size: 15px;
}
.news-caption {
    font-weight: 600;
    font-style: italic;
    color: #666666;
    padding-bottom: 10px;
}
.news-box {
    padding: 30px 7% 0 7%;
	  border-radius: 6px;
    background-color: #f9f9f9;
    box-shadow: 2px 1px 10px 1px rgba(220,220,220,1);
}
.news-line {
    margin: 20px 20px 40px 40px;
    height: 1px;
    background-color: #ddd;
    grid-row:2;
}
.news-heading {
    font-size: 20px;
    font-weight: 500;
    color: var(--tfs-green-dark);
    padding-bottom: 10px;
}
.news-details {
    padding: 0 20px 0 12px;
    font-size: 16px;
    display: inline-block; /*to stop image dropping out of container */
}
.news-readmore {
    text-align: center;
    padding-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
    color: var(--tfs-green-dark);
}
.news-readmore:hover{
    color: var(--tfs-green-light);
}
.news-readmore i{
    font-size: 40px;
}
.news-readmore span{
    font-size: 24px;
}
@media (max-width: 740px) {
    .news-feature-image {
        width: 100%;
    }
    .news-feature {
        grid-column: 1 / 7;
        grid-row: 4;
    }
    .news-container {
        padding: 30px 10px 0 10px;
    }
    .news-box {
        padding: 20px 0 0 0;
    }
}

/* careers
========================================================================== */
.careers-heading-box {
    max-width: 1068px;
    margin: auto;
    padding: 40px 5% 20px 5%;
    display:grid;
    grid-template-columns: 50% 50%;
    align-items: center;
}

/* footer
========================================================================== */
footer {
    position: absolute;
    bottom: 0;
    height: 330px;
    width: 100%;
    letter-spacing: .75px;
    color: #dddddd;
    background-color: #2c3239;
    color: #404040;
    background-color: #ffffff;
    border-top: 2px solid var(--tfs-green-light);
    display: grid;
    grid-template-columns: 55% 45%;
    align-content: center;
    justify-content: center;
}
footer .left, footer .right {
    height: 300px;
    display: grid;
    align-content: center;
    justify-content: center;
}
footer .left {
    grid-column: 1;
    justify-content: center;
}
footer .left .strapline{
    font-size: 26px;
    color: var(--tfs-green-dark);
    text-align: center;
    font-weight: bold;
    padding: 0 0 40px 0;
}
footer .left .affiliations {
    text-align: center;
}
footer .left .affiliations img{
    height:74px;
    width: auto;
}
footer .left .affiliations img:hover{
    opacity: 0.8;
}
footer .right {
    grid-column: 2;
    padding-right: 30px;
}
footer .bottom {
    grid-column: 1 / span 2;
    height: 30px;
    background-color: #f2f2f2;
    border-top: 2px solid var(--tfs-green-light);
    font-size: 15px;
    display:grid;
    grid-template-columns: repeat(3, 20%);
    justify-content: center;
    text-align: center;
}
footer .right .detail {
    padding-top:6px;
}
footer .right .detail p {
    margin-block-start: 0;
    margin-block-end: 10px;
}
footer .right .detail i{
    padding-top:6px;
    padding-right: 20px;
    font-size: 22px;
}
footer .bottom a{
    align-self: center;
    color: #dddddd;
    color: #404040;
}
footer .bottom a:hover{
    color: #f0f0f0;
    color: var(--tfs-green-light);
}
@media (max-width: 360px) {
  footer .left .affiliations img{
      height:38px;
  }
}
@media (max-width: 500px) {
  footer .left .affiliations img{
      height:48px;
  }
}

@media (max-width: 860px) {
    body {
        padding-bottom: 560px; /* sticky footer height plus padding above footer */
    }
    footer {
        height: 530px;
    }
    footer .right, footer .left {
        grid-column: 1/ span 2;
        justify-content: center;
    }
    footer .right {
        padding-right: 0;
    }
    footer .contact-heading {
        text-align: left;
    }
    footer .left {
        height:200px;
    }
   footer .left .strapline{
        padding: 30px 0 30px 0;
   }
}


/*  utilities
========================================================================== */
.tfs-green-dark {
    color: var(--tfs-green-dark);
}
.round {
	  border-radius: 6px;
}
.dots {
    margin-top: 12px;
    text-align: center;
}
.dot {
    cursor: pointer;
    height: 16px;
    width: 16px;
    margin: 0 2px 0 6px;
    background-color: var(--tfs-green-faded);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 1.2s ease;
}
.dot.active, .dot:hover {
    background-color: var(--tfs-green-dark);
    font-size: 103%;
}
.displayNone{
    display: none;
}
.bold {
    font-weight: bold;
}
.text-bold-links a {
    font-weight: 600;
    font-size: 103%;
    color: var(--tfs-green-dark);
    border-bottom: dotted 1px var(--tfs-green-light);
}
.text-bold-links a:hover {
    color: var(--tfs-green-light);
}
