/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  CONTENTS  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

Google fonts
Whole page styles
Typography
Buttons
Header
Logo
Homepage hero
Intro
Services section
Quote section
Latest Work section
Reviews sections
Why Choose Us section
CTA section
Footer
"show-on-scroll.js" classes

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  */


/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  GOGLE FONTS   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600&family=Oswald:wght@400;500;600;700&family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ WHOLE PAGE STYLES  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */   
:root {
    --header-height: 60px;
    --logo-height: 100px;

    --accent-color-1: #042e0d;
    --accent-color-2: #0f6d24;
    --accent-color-3: #211f20;
    --accent-color-4: #5e585b;
    --dark-grey: #575757;
    --medium-grey: #7f7f7f;
    --light-grey: #b9b9b9;
    --very-light-grey: #e9e9e9;
    --hamburger-filter: invert(24%) sepia(10%) saturate(4070%) hue-rotate(102deg) brightness(100%) contrast(91%);

    --gradient-1: linear-gradient(150deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.5) 100%);
    --gradient-2: linear-gradient(150deg, var(--accent-color-2) 0%, var(--accent-color-1) 100%);
    --gradient-3: linear-gradient(200deg, var(--accent-color-3) 0%, var(--accent-color-4) 100%);
    --gradient-4: linear-gradient(150deg, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.9) 100%);

    --paragraph-text: 'Poppins', sans-serif;
    --header-text: 'Oswald', sans-serif;

    --border-radius: 10px;
    --box-shadow: 5px 5px 18px 0px rgba(0,0,0,0.3);
    --clip-path-right: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
    --clip-path-left: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    --horizontal-page-padding: 10%;
}

* {
    /* border: 1px dashed grey; */
    box-sizing: border-box;
 }

 html {
    scroll-behavior: smooth;
    font-family: var(--paragraph-text);
    font-size: 15px;
    background-color: white;
}

body {
    background-color: white;
}

section, footer {
    padding: 150px var(--horizontal-page-padding);
}


/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   TYPOGRAPHY  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  */  
h1, h2, h3 {
    background: var(--gradient-2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--header-text);
    font-weight: 600;
    font-style: normal;
}

h2 {
    font-size: clamp(2.2rem, 12vw, 5rem);
    margin: 0;
}

h3 {
    font-size: clamp(3.2rem, 10vw, 4rem);
    font-family: var(--header-text);
    font-weight: 600;
}

h4 {
    margin: 0;
    color: var(--accent-color-2);
    font-size: 1.6rem;
    font-family: var(--header-text);
    font-weight: 500;
}

p, ul {
    font-size: 1.4rem;
    line-height: 2rem;
    color: var(--dark-grey);
}

a {
    text-decoration: none;
}

.normal-link {
    text-decoration: underline;
    text-decoration-color: var(--accent-color-1);
    color: var(--dark-grey);
    font-weight: 600;
    transition: 0.3s;
}

.normal-link:hover {
    color: var(--accent-color-1);
}

.text-cols {
    columns: 3 300px;
    margin: 40px 0;
    column-gap: 40px;
}

.text-cols p, .text-cols ul {
    margin-top: 0;
}

.normal-list {
    color: var(--dark-grey);
    padding-left: 2rem;
    list-style-type: square;
    list-style-position: outside;
}

.normal-list li {
    margin: 0;
    padding: 8px 0;
    line-height: 2rem;
    font-weight: 500;
}

.normal-list li::marker {
    color: var(--accent-color-2);
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   BUTTONS  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */  
button {
    padding: 12px 30px;
    margin: 10px 0;
    border-radius: var(--border-radius);
    font-family: var(--paragraph-text);
    font-size: 1.4rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: var(--box-shadow);
    transition: 0.3s;
    cursor: pointer;
}

button:hover {
    scale: 1.03;
}

.button-dark {
   margin: 10px 20px 10px 0;
   background-color: var(--accent-color-1);
   background-image: var(--gradient-3);
   color: white;
   border: none;
   padding: 14px 30px; /* To equalize size with button-light*/
}

.button-light {
    background-color: rgba(255, 255, 255, 0);
    border: 2px solid white;
    color: white;
}

.hero-button-light {
    background-color: rgba(255, 255, 255, 0);
    border: 2px solid var(--accent-color-3);
    color: var(--accent-color-3);
    padding: 12px 30px; /* To equalize size with button-light*/
}

.button-white {
    background-color: white;
    border: 2px solid white;
    color: var(--accent-color-2);
}

button i {
    margin-right: 10px;
}


/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  HEADER  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
header {
    display: block;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1;
    transition: box-shadow 0.5s;
}

.header-top {
    display: flex;
    justify-content: right;
    gap: 30px;
    margin: 0;
    padding: 6px var(--horizontal-page-padding);
    background-color: var(--accent-color-2);
    color: white;
}

.header-main {
    display: flex;
    width: 100%;
    height: var(--header-height);
    padding: 0 var(--horizontal-page-padding);
    background-color: white;
    justify-content: flex-end;
    align-items: center;
}

nav {
    display: flex;
    position: relative;
    justify-content: flex-end;
    align-items: center;
}

.nav-item {
   margin-left: 30px;
   font-size: 1.3rem;
   font-weight: 400;
   text-decoration: none;
   color: var(--dark-grey);
   white-space: nowrap;
   transition: 0.3s;
}

.fa-sort-down {
    transform: translateY(-30%);
    padding-left: 10px;
    font-size: 1rem;
    transition: 0.3s;
}

.nav-item:hover {
    color: var(--accent-color-2);
}

.nav-cta {
    background-image: var(--gradient-3);
    color: white;
    padding: 10px 16px;
    border-radius: var(--border-radius);
    transition: 0.3s;
}

.nav-cta:hover {
    color: white;
    scale: 1.05;
}

.nav-cta i {
    margin-right: 0.5em;
}

.services-dropdown {
    position: absolute;
    bottom: 100px;
    margin: 0;
    padding-top: 20px;
    background-color: rgba(0, 0, 0, 0);
    opacity: 0;
    transform: scaleY(0);
    transition: 0.3s;
}

.services-dropdown .nav-item {
    display: block;
    margin: 0;
    padding: 16px 30px;
    background-color: rgba(243, 243, 243, 0.8);
    backdrop-filter: blur(10px);
}

.services-dropdown .nav-item:last-child {
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: 0px 10px 13px -5px rgba(0,0,0,0.32);
}

.services-dropdown .nav-item:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.services-link-container {
    margin: 0;
    width: 100%;
}

.services-link-container:hover .services-dropdown {
    top: 40px;
    transform: scaleY(1);
    opacity: 1;
    transition: 0.3s;
}

.services-link-container:hover .fa-sort-down {
    transform: scaleY(-1);
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  LOGO  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.logo {
    display: block;
    height: var(--logo-height);
    z-index: 2;
    position: sticky;
    top: 0;
    transition: height 0.6s;
}

.fixed-logo { /* Added/removed with 'sticky-logo.js' */

    /* Uncomment for rectangular logo */
    position: fixed;
    height: calc(var(--header-height)*0.75);
    top: calc((var(--header-height)/2) + 30px);
    transform: translateY(-50%);

    /* Uncomment below for circular logo */
    /* position: fixed;
    top: 5px;
    height: 120px;
    background-color: white;
    border: 5px solid white;
    box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.5); */
}

.header-box-shadow { /* Added/removed with "header.js" */
    box-shadow: 0px 1px 5px rgba(0,0,0,0.5);
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  HOMEPAGE HERO  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.hero {
    display: flex;
    min-height: 95vh;
    flex-wrap: wrap;
    margin-top: 60px; /* To offset against fixed header*/
    margin-bottom: 0;
    padding: 0;
}

.hero-left, .hero-right {
    display: flex;
    align-items: center;
}

.hero-left {
    width: 50%;
}

.hero-right {
    width: 50%;
    padding-right: var(--horizontal-page-padding);
    padding-bottom: 3%;
    background-color: var(--accent-color-1);
    background-image:
        var(--gradient-1),
        url('../media/hero.jpg');
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-clip-path: var(--clip-path-right);
    clip-path: var(--clip-path-right);
    align-items: flex-end;
    justify-content: flex-end;
}

.hero-text-container {
    width: 100%;
    padding-left: calc(var(--horizontal-page-padding)*2);
    padding-right: 5%;
}

.hero-text-container h1 {
    font-size: clamp(2.4rem, 10vw, 4rem);
}

.hero-text-container h2 {
    font-size: 2rem;
}

.gas-safe {
    display: block;
    width: 20%;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ INTRO SECTION  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.intro {
    display: flex;
    align-items: center;
    background-image: var(--gradient-2);
    padding: 90px var(--horizontal-page-padding);
    gap: 5%;
    margin-top: 0px;
}

.left-column, .right-column {
    flex-basis: 100%;
}

.intro span, .intro p {
    background: none;
    color: white;
}

.intro span {
    display: block;
    padding: 30px 0;
    font-family: var(--header-text);
    font-size: 2.8rem;
    font-style: italic;
    font-weight: 500;
}

.intro span i {
    color: white;
    opacity: 0.7;
}


/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ACCREDITATIONS SECTION  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.accreditations {
    display: flex;
    padding: 60px var(--horizontal-page-padding);
    background-color: var(--very-light-grey);
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 40px;
}

.accreditations img {
    height: 70px;
}


/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SERVICES SECTION  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.services {
    text-align: center;
    padding-bottom: 80px;
}

.services p {
    width: 60%;
    margin: 0 auto;
    padding: 30px 0;
}

.service-card-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin: 2em 0;
    gap: 2vw;
    align-content: center;
}

.service-card {
    display: flex;
    width: 100%;
    padding: 1.5em;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    background-color: rgba(0,0,0,0.1);
    background-position: center;
    background-size: cover;
    text-decoration: none;
    color: white;
    font-size: 1.6vw;
    font-weight: 500;
    transition: 0.3s;
}

.service-card:nth-child(1) {
    background-image: var(--gradient-4), url('../media/service-1.jpg');
}

.service-card:nth-child(2) {
    background-image: var(--gradient-4), url('../media/service-2.jpg');
}

.service-card:nth-child(3) {
    background-image: var(--gradient-4), url('../media/service-3.jpg');
}

.service-card:nth-child(4) {
    background-image: var(--gradient-4), url('../media/service-4.jpg');
}

.service-card:nth-child(5) {
    background-image: var(--gradient-4), url('../media/service-5.jpg');
}

.service-card:nth-child(6) {
    background-image: var(--gradient-4), url('../media/service-6.jpg');
}

.service-card:hover {
    transform: scale(1.02);
    filter: brightness(120%);
}


/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ QUOTE SECTION  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.quote-section {
    display: flex;
    align-items: stretch;
    padding: 0;
    background-color: var(--very-light-grey);
}

.quote-section .left-column, .quote-section .right-column {
    flex-basis: 100%;
    padding: 90px 5%  70px var(--horizontal-page-padding);
}

.quote-section .right-column {
    background-color: var(--accent-color-1);
    background-image:
        var(--gradient-1),
        url('../media/hero-2.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-clip-path: var(--clip-path-right);
    clip-path: var(--clip-path-right);
}

.quote {
    display: block;
    background: var(--gradient-2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--header-text);
    font-size: clamp(2rem, 8vw, 3rem);
    font-style: italic;
    font-weight: 600;
}

.quote::before {
    content: url('../media/svg/quote-left-solid.svg');
    width: 50px;
    height: 50px;
    margin-right: 16px;
    transform: translateY(10px);
}

.quote::after {
    content: url('../media/svg/quote-right-solid.svg');
    margin-left: 16px;
    margin-top: -16px;
    transform: translateY(16px);
}

.quote::before, .quote::after {
    display: inline-block;
    width: 50px;
    height: 50px;
    filter: invert(82%) sepia(14%) saturate(0%) hue-rotate(280deg) brightness(80%) contrast(90%);
}

.quote-name {
    display: block;
    margin-top: 20px;
    float: right;
    font-family: 'Caveat', cursive;
    font-size: clamp(2rem, 8vw, 2.4rem);
    color: grey;
}


/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LATEST WORK SECTION ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.latest-work-section {
    display: flex;
    margin-bottom: 7%;
    align-items: center;
    gap: 5%;
}

.latest-work-section .left-column, .latest-work-section .right-column {
    flex-basis: 100%;
}

.latest-work-section .left-column {
    display: flex;
}

.latest-work-section .right-column {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.latest-work-section .left-column .image-container {
    width: 50%;
}

.latest-work-image-1, .latest-work-image-2 {
    display: block;
    width: 100%;
    border: 12px solid white;
    border-radius: 10%;
    box-shadow: var(--box-shadow);
    scale: 1.3;
}

.latest-work-image-1 {
    margin-top: 25%;
    transform: translate(10%, 10%);
}

.latest-work-image-2 {
    margin-bottom: 25%;
    transform: translate(-10%, 10%);
}


/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ REVIEWS SECTION ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.reviews-section {
    display: flex;
    align-items: center;
    padding: 0;
    background-color: var(--very-light-grey);
}

.reviews-section .left-column, .reviews-section .right-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-basis: 100%;
    padding: 90px 0;
    height: 700px;
}

.reviews-section .left-column {
    padding-left: var(--horizontal-page-padding);
    padding-right: 2.5%;
}

.reviews-section .right-column {
    padding: var(--horizontal-page-padding);
    background-image: var(--gradient-2);
    -webkit-clip-path: var(--clip-path-right);
    clip-path: var(--clip-path-right);
}

.review-quote-icon {
    color: white;
    margin: 0 auto;
    font-size: 5rem;
}

.review-slide {
    display: none;
}

.review-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.review-text {
    color: white;
    font-size: 2rem;
    font-weight: 400;
    font-style: italic;
    line-height: 2.4rem;
}

.review-name {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.five-stars {
    display: inline-block;
    height: 2rem;
    opacity: 0.7;
}

.dots {
    margin: 0 auto;
    padding: 20px 0;
    text-align: center;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 2px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active {
  background-color: rgba(255, 255, 255, 0.7);
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: 0.3} 
  to {opacity: 1}
}


/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ WHY CHOOSE US SECTION ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.why-choose-us-section {
    text-align: center;
}

.why-choose-us-section p {
    width: 60%;
    margin: 0 auto;
    padding: 30px 0;
}

.reason-container {
    display: flex;
    justify-content: center;
}

.reason {
    flex-basis: 100%;
    margin: 50px;
    text-align: center;
}

.reason i {
    display: block;
    font-size: 8vw;
    background: var(--gradient-2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reason span {
    display: block;
    margin: 20px 0;
    font-size: 2rem;
    font-weight: 600;
    font-style: italic;
    color: var(--dark-grey);
}


/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CTA SECTION ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.CTA-section {
    display: flex;
    align-items: stretch;
    padding: 0;
    background-image: var(--gradient-2);
}

.CTA-section .left-column, .CTA-section .right-column {
    flex-basis: 100%;
}

.CTA-section .left-column {
    background-color: var(--accent-color-1);
    background-image:
        var(--gradient-1),
        url('../media/hero-3.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-clip-path: var(--clip-path-left);
    clip-path: var(--clip-path-left);
}

.CTA-section .right-column {
    padding: 60px var(--horizontal-page-padding) 60px 5%;
    text-align: center;
}

.CTA-section .right-column span {
    display: block;
    padding: 30px 0;
    font-family: var(--header-text);
    font-size: clamp(3rem, 7vw, 3.5rem);
    font-weight: 500;
    font-style: italic;
    color: white;
}

.CTA-section button {
    margin-bottom: 46px;
    margin-right: 20px;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ FOOTER ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
footer {
    padding: 0 var(--horizontal-page-padding);
    padding-bottom: 0;
    background-color: rgb(12, 12, 12);
    background-position: bottom;
    background-size: contain;
    background-repeat: no-repeat;
    box-shadow: 0px 5px 16px 0px rgba(0,0,0,0.2) inset;
}

.footer-column-wrapper {
    display: flex;
    padding: 90px 0 30px 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0 20px;
}

.footer-column {
    text-align: center;
    flex-basis: 100%;
}


.footer-column h4 {
    margin-bottom: 0.8rem;
    font-size: 3rem;
}

.footer-column table, .footer-column p {
    margin: 0;
    color: white;
    font-size: 1.4rem;
}

.logo-mask {
    width: 200px;
    aspect-ratio: 1;
    display: inline-block;
    -webkit-mask-image: url("../media/logo/logo.png");
    mask-image: url("../media/logo/logo.png");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 100%;
    mask-size: 100%;
}

.logo-mask-background {
    width: 100%;
    height: 100%;
    background-color: var(--medium-grey);
}

.footer-logo {
    width: 60%;
    margin-top: 10px;
    filter: grayscale(100%) brightness(1000%) opacity(30%);
}

.social-icon-container {
    display: flex;
    padding: 30px 0;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.social-icon {
    display: block;
    filter: invert(0.4);
    transition: 0.3s;
}

.social-icon img {
    width: 90px;
}

.social-icon:hover {
    filter: invert(0.2);
}

.company-info p {
    text-align: center;
    font-size: 1rem;
}
.footer-bottom {
    width: 100%;
    border-top: 1px solid grey;
    color: grey;
    margin-top: 90px;
    padding: 16px 0;
}

.footer-bottom span {
    display: inline-block;
}

.footer-bottom a {
    color: grey;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.built-by {
    float: right;
    text-align: right;
}


/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "show-on-scroll.js" classes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.hidden-until-scroll {
    opacity: 0;
    transition: height 0.5s, box-shadow 0.5s, opacity 1s;
}

.show-on-scroll {
    opacity: 1;
}

.delay-200ms{
    transition-delay: 200ms;
}

.delay-300ms{
    transition-delay: 300ms;
}

.delay-400ms{
    transition-delay: 400ms;
}

.delay-500ms{
    transition-delay: 500ms;
}

.delay-600ms{
    transition-delay: 600ms;
}

.delay-700ms{
    transition-delay: 700ms;
}

.delay-800ms{
    transition-delay: 800ms;
}

.delay-900ms{
    transition-delay: 900ms;
}

.delay-1000ms{
    transition-delay: 1000ms;
}