/* ===  CONTENTS ===================================

GOOGLE FONTS
WHOLE PAGE STYLES 
BUTTONS
HEADER
DESKTOP NAV
HOMEPAGE HERO
NORMAL PAGE HERO 
FLEX CONTAINERS
SERVICES SECTION 
WHY CHOOSE US? SECTION 
LATEST WORK SECTION
REVIEWS SECTION
CTA SECTION
CONTACT FORM
FOOTER
JS CLASSES

=================================================== */


/* === GOOGLE 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,200;0,300;0,400;0,500;0,600;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Aldrich&display=swap');

/* === WHOLE PAGE STYLES ========================= */    
:root {
    --header-height: 70px;
    --header-height-reduced: 60px;
    --accent-color-1: #f80000;
    --accent-color-2: #770000;
    --accent-color-3: #242424;
    --accent-color-1-dark: rgb(1,10,92);
    --gradient-1: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 30%, rgba(0, 0, 0, 1) 100%);
    --gradient-2: linear-gradient(150deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%);
    --gradient-4: linear-gradient(150deg, var(--accent-color-1) 0%, var(--accent-color-2) 100%);
    --gradient-6: linear-gradient(150deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
    --dark-grey: rgb(31, 31, 31);
    --medium-grey: #7f7f7f;
    --light-grey: #b9b9b9;
    --very-light-grey: #e4e4e4;
    --paragraph-text:  'Poppins', sans-serif;
    --header-text: 'Poppins', serif;
    --border-radius: 5px;
    --box-shadow: 0px 4px 10px 0px rgba(0,0,0,0.5);
}

* {
   /* border: 1px dashed grey; */
   box-sizing: border-box;
}

html {
    max-width: 100vw;
    scroll-behavior: smooth;
    font-family: var(--paragraph-text);
    font-size: 16px;
    background-color: white;
}

body {
    overflow-x: hidden;
    background-color: white;
}

h1, h2, h3 {
    color: var(--accent-color-1);
    font-family: var(--header-text);
    font-weight: 500;
}

h2 {
    font-size: clamp(2.4rem, 11vw, 3.5rem);
    margin: 0;
}

h3 {
    font-size: clamp(2rem, 8vw, 2.2rem);
    font-family: var(--header-text);
    font-weight: 6300;
    padding: 10px 0;
    margin: 0;  
}

h4 {
    font-family: var(--paragraph-text);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-color-2);
    padding: 0;
    margin: 0;  
}

p, ul {
    font-size: 1.2rem;
    line-height: 1.7rem;
    color: var(--dark-grey);
}

section, footer {
    padding: 100px 15%;
}

.normal-link {
    text-decoration: underline;
    text-decoration-color: rgba(0,0,0,0.5);
    text-decoration-thickness: 2px;
    color: inherit;
    font-weight: 600;
    transition:  0.3s;
}

.normal-link:hover {
    text-decoration-color: var(--accent-color-1);
}

.text-cols-1 {
    margin: 40px 0;
    padding: 1rem;
    columns: 1;
    column-gap: 40px;
    background: rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
}

.text-cols-2 {
    margin: 40px 0;
    padding: 1rem;
    columns: 2 300px;
    column-gap: 40px;
    background: rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
}

.text-cols-3 {
    margin: 40px 0;
    padding: 1rem;
    columns: 3 300px;
    column-gap: 40px;
    background: rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
}

.text-cols p, .text-cols ul, .text-cols-3 ul {
    margin-top: 0;
}

.normal-list {
    color: var(--dark-grey);
    line-height: 1.4rem;
    padding-left: 2rem;
    list-style-type: square;
    list-style-position: outside;
}

.normal-list li {
    margin: 0;
    padding: 5px 0;
    line-height: 1.8rem;

    font-weight: 500;
}

.normal-list li::marker {
    color: var(--accent-color-1);
}

em {
    padding: 2em 0;
    font-size: 0.9rem;
    color: var(--medium-grey);
}

b {
    font-weight: 600;
}

figure {
    margin: 0;
    padding: 0;
}

figcaption {
    text-align: center;
    font-style: italic;
    color: var(--dark-grey);
}

.narrow-on-desktop {
    max-width: 700px;
    margin: 0 auto;
}

.cropped-img {
    display: block;
    width: 100%;
    aspect-ratio: 1.2;
    object-fit: cover;
    object-position: center;
}

/* === BUTTONS =================================== */
button {
    padding: 0.6em 1em;
    margin: 4px 0;
    border-radius: var(--border-radius);
    font-family: var(--paragraph-text);
    font-size: 1.2rem;
    font-weight: 500;
    transition: 0.3s;
    cursor: pointer;
}

.button-dark {
   margin: 10px 0;
   background-color: var(--accent-color-2);
   background-image: var(--gradient-4);
   border-width: 2px;
   border-style: solid;
   border-image-slice: 1;
   border-image-source: var(--gradient-4);
   color: white;
}

.button-dark:hover {

}

.button-light {
    background-color: rgba(255, 255, 255, 0);
    border: 2px solid var(--accent-color-1);
    color: var(--accent-color-1);
}
 
.hero-button-container {
    padding: 0 0 0 0;
}

.hero-button-light {
    background-color: var(--accent-color-1);
    background-image: var(--gradient-4);
    border-width: 2px;
    border-style: solid;
    border-image-slice: 1;
    border-image-source: var(--gradient-4);
    margin-right: 16px;
    color: white;
}

.hero-button-dark {
    background-color: rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    border: 2px solid white;
    color: white;
}

.hero-button-dark i {
    margin-right: 1em;
}

.hero-button-light:hover, .hero-button-dark:hover {

}

button:hover {
    scale: 1.05;
}

/* === HEADER =================================== */
header {
    display: flex;
    width: 100%;
    height: var(--header-height);
    padding: 0 15%;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 3;
    background-color: (255,255,255,0);
    transition: background-color 0.3s;   
}

.logo {
    display: block;
    height: calc(var(--header-height)*0.9);
    background-color: black;
    border-radius: 100%;
    border: 4px solid black;
    transform: scale(1.7);
    transform-origin: 0% 30%;
    transition: filter 0.5s, transform 1s, transform-origin 1s, opacity 0.3s;
}

.logo:hover {
    filter: brightness(0.8);
}

.white-logo {
    background-color: transparent;
    border-color: transparent;
    transform: scale(3);

}

header nav {
  color: var(--dark-grey);
}

header nav > ul {
    display: flex;
    margin: 0;
    padding: 0;
    height: 100%;
    gap: 1em;
    transition: 0.3s;
}

header nav ul li {
    padding: 2px 0;
    list-style-type: none;
    position: relative;
}

header nav ul ul {
    width: auto;
    height: auto;
    margin-left: -1em;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    background-color: rgba(0,0,0,0.2);
    backdrop-filter: blur(15px);
    transition: opacity 0.3s;
}

header nav ul ul li {
    display:  block;
    margin: 0.2em 1em;
}

header nav li:hover ul {
    opacity: 1;
    pointer-events: auto;
}

header nav ul ul li:first-child {
    /* display: none; */
}

header nav a {
    font-size: 1.1rem;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0);
    text-decoration-thickness: 0px;
    text-underline-offset: 0.4em;
    text-transform: uppercase;
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    transition: color 1s, text-decoration-color 0.3s;
}


header nav a:hover {
    text-decoration: underline 2px white
}

header nav ul li:last-child a i {
    font-size: 0.9em;
    margin-right: 0.2em;
}

.white-bg {
    background-color: black;
    backdrop-filter: blur(10px);
}

.dark-nav-text {
    color: white;
}

.dark-nav-text:hover {
    text-decoration-color: var(--accent-color-1);
}

.header-shadow {
    box-shadow: 0px 1px 5px rgba(0,0,0,0.2);
}

.dropdown-shadow {
    box-shadow: 0px 13px 18px -10px rgba(0,0,0,0.2);
}

.hamburger {
    display: none;
    content: url(../media/svg/hamburger.svg);
    height: calc(var(--header-height)*0.5);
    filter: grayscale(100%) invert(100%) brightness(200%);
    opacity: 1;
    transition: filter 0.7s, transform 0.5s, opacity 0.3s;
    cursor: pointer;
}

.hamburger:hover {
    opacity: 0.7;
}

.hamburger-dark {

}

.hamburger-cross {
    content: url(../media/svg/cross.svg);
    filter: grayscale(100%) opacity(0.3);
    transform: scaleX(-1);
}

.disable-scroll {
    height: 100dvw;
    max-height: 100dvw;
    overflow: hidden;
}


/* === HOMEPAGE HERO =================================== */
.hero {
    display: flex;
    min-height: 100vh;
    justify-content: flex-start;
    align-items: center;
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    position: relative;
}

.hero .hero-text {
    max-width: 650px;
    padding: 0;
    text-align: left;
    z-index: 2;
}

.hero-text h1 {
    margin: 0.5em 0 0 0;
    font-size: clamp(2.2rem, 9vw, 3.5rem);
    font-weight: 600;
    color: white;
    text-align: balance;
    /* text-shadow: 3px 3px rgba(0,0,0,0.5); */
}

.hero-text h2 {
    margin: 1em 0;
    font-family: var(--paragraph-text);
    font-size: 1.6rem;
    color: white;
    font-weight: 400;
    /* text-shadow: 3px 3px rgba(0,0,0,0.5); */
}

.hero-text h2 b {
    opacity: 0.5;
}

.hero-text p {
    margin: 0;
    color: white;
    font-size: 1.5rem;
}

.hero hr {
    display: block;
    max-width: 200px;
    margin: 1.5em auto;
    border-color: var(--accent-color-1);
}

.hero-accreditations {
    margin-top: 30px;
}

.hero-accreditations img {
    height: 50px;
    width: auto;
    margin-right: 30px;
}

.hero-logo {
    display: block;
    height: 200px;
    margin: 0 auto;
    padding-bottom: 60px;
    padding: 1em 2em;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: black;
    overflow: hidden;
}

.hero-bg-container .slide {
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
    scale: 1.2;
    transition: opacity 1s ease-in-out, scale 6s;
}

.hero-bg-container .slide.show {
    opacity: 1;
    scale: 1;
}

.accreditations-container {
    display: flex;
    gap: 2em;
    position: absolute;
    z-index: 2;
    bottom: 2em;
    right: 15%;
}

.accreditations-container img {
    filter:  brightness(0) invert(1);
    height: 20vw;
    max-height: 60px;
    opacity: 1;
    transition: opacity 0.3s;
}

.accreditations-container img:hover {
    opacity: 0.7;
}

/* === NORMAL PAGE HERO =================================== */
.page-hero {
    display: flex;
    height: 50vh;
    padding: 0;
    align-items: center;
    background-color: var(--accent-color-1);
    background-image: 
        var(--gradient-6),
        url('../media/placeholder-hero.jpg');
    background-position-x: center;
    background-position-y: top;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.page-hero .hero-text {
    width: 100%;
    padding: 0 5%;
}

.page-hero-text {
    text-align: center;
}


.page-hero h1 {
    font-size: 3rem;
    text-align: center;
    color: white;
}

.page-hero h2 {
    font-family: var(--paragraph-text);
    font-size: 1.6rem;
    font-weight: 400;
    text-align: center;
}

.page-hero p {
    color: white;
}


/* === INTRO SECTION =================================== */
.intro {
    background-color: white;
    z-index: 1;
}

.intro-2 {
    background-color: var(--very-light-grey);
}


.credentials {
    background-color: white;
}


/* === FLEX CONTAINERS =================================== */
.flex-container {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
  }
  
  .flex-item-left, .flex-item-right {
    width: 50%;
  }
  
  .flex-container img {
    width: 100%;
  }


/* === SERVICES SECTION =================================== */
.services-section  {
    background-color: white;
    text-align: center;
  }

  .services-section  .services p {
    width: 60%;
    margin: 0 auto;
    padding: 1em 0;
    text-align: center;
  }

  .services-section .service-card-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin: 2em 0;
    gap: 1vw;
    align-content: center;
}

.services-section .service-card {
    display: flex;
    width: 100%;
    padding: 0.5em;
    align-items: flex-end;
    justify-content: flex-start;
    aspect-ratio: 1.5;
    border-radius: calc(var(--border-radius)*1);
    background-color: rgba(0,0,0,0.1);
    background-position: center;
    background-size: cover;
    text-decoration: none;
    color: white;
    font-size: 1.5vw;
    font-weight: 500;
    font-family: var(--paragraph-text);
    text-align: left;
    border-bottom: 5px solid var(--accent-color-1);
    transition: 0.3s;
}

.services-section .service-card:nth-child(1) {
    background-image: var(--gradient-1), url('../media/service-1.jpg');

}

.services-section .service-card:nth-child(2) {
    background-image: var(--gradient-1), url('../media/service-2.jpg');
}

.services-section .service-card:nth-child(3) {
    background-image: var(--gradient-1), url('../media/service-3.jpg');
}

.services-section .service-card:nth-child(4) {
    background-image: var(--gradient-1), url('../media/service-4.jpg');

}

.services-section .service-card:nth-child(5) {
    background-image: var(--gradient-1), url('../media/service-5.jpg');
}

.services-section .service-card:nth-child(6) {
    background-image: var(--gradient-1), url('../media/service-6.jpg');
}

.services-section .service-card:hover {
    box-shadow: var(--box-shadow);
    filter: brightness(130%);
    scale: 1.03;
}

/* === WHY CHOOSE US? SECTION =================================== */
.why-choose-us {
    text-align: center;
    background-color: var(--accent-color-1);
    background-image: 
        var(--gradient-2),
        url("../media/hero-3.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

.why-choose-us h2, .why-choose-us h3, .why-choose-us p {
    color: white
}

.why-choose-us-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

.why-choose-us-item {
    display: block;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    align-self: flex-start;
    flex-basis: 33%;
    flex-grow: 0;
    min-width: 200px;
    text-align: center;
    color: white;
}

.why-choose-us-item img {
    display: block;
    height: 7vw;
    width: auto;
}

.why-choose-us-item p {
    display: block;
    font-size: 1.4rem; 
    font-weight: 400;
    font-style: italic;
}

.icon {
    font-size: 4.5rem;
    color: rgba(255, 255, 255, 1);
}

.tick {
    color: white;
    font-size: 35px;
    margin-left: 10px;
}


/* === QUOTE SECTION =================================== */
.quote {
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
    background-color: var(--accent-color-1);
    background: 
        var(--gradient-2),
        url("../media/hero-2.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

.quote p {
    width: 80%;
    margin: 0 auto;
    padding: 1em 0 0 0;
    font-family: var(--paragraph-text);
    font-size: 1.8rem; 
    font-style: italic;
    line-height: 2.4rem;
    color: white;   
}

.quote i {
    color:  var(--accent-color-1);
    text-align: center;
}

.quote .quote-name {
    display: block;
    margin-top: 0.5em;
    color: white;
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    font-style: italic;
    text-align: right;
}

.quote .quote-title {
    display: block;
    text-align: right;
    color: white;
    font-size: 1.2rem;
}


/* === LATEST WORK SECTION =================================== */
.latest-work {
    background-color: var(--very-light-grey);
}


.latest-work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1em;
}

.latest-work img {
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius);
    aspect-ratio: 0.96;
}

.latest-work-grid img:nth-child(1) {
    grid-column: 1/3;
    aspect-ratio: 2;
}

.latest-work-grid img:nth-child(4) {
    grid-column: 2/4;
    aspect-ratio: 2;
}



/* === REVIEWS SECTION =================================== */
.reviews-section {
    background-color: white;
    text-align: center;
}

.reviews-section .reviews h3 {
   color: #9e8d61;
}

.reviews-section .slideshow-container {
   max-width: 100%;
   position: relative;
   margin: 0 auto;
   padding: 0 0 30px 0;
   transition: 1s;
}
  
.reviews-section .prev-button, .next-button {
    width: auto;
    cursor: pointer;
    position: absolute;
    top: 50%;
    margin-top: -22px;
    padding: 16px;
    color: grey;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s ease;
    user-select: none;
}
  
.reviews-section .prev-button {
   left: 0;
   border-radius: 0 3px 3px 0;
}

.reviews-section .next-button {
  right: 0;
  border-radius: 3px 0 0 3px;
}
  
.reviews-section .prev-button:hover, .reviews-section .next-button:hover {
  background-color: rgba(0,0,0,0.2);
}
  
.reviews-section .review-text {
    width: 80%;
    margin: 0 auto;
    padding: 1em 5%;
    bottom: 8px;
    text-align: left;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--dark-grey);
    text-align: center;
}
  
.reviews-section .review-name {
    padding: 0;
    margin: 0;
    font-family: Caveat, cursive;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--medium-grey);
    text-align: right;
}

.reviews-section .review-text i {
    color: black;
    opacity: 0.3;
}

.reviews-section .review-stars {
    color: goldenrod;
}
 
.reviews-section .dots-container {
    text-align: center;
    padding: 10px 0 40px 0;
}

.reviews-section .dot { 
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #526b8d;;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}
  
.reviews-section .active, .reviews-section .dot:hover {
    background-color: var(--accent-color-2);
}
  
.reviews-section .fade {
   animation-name: fade;
   animation-duration: 1.5s;
}
  
@keyframes fade {
   from {opacity: 0}
   to {opacity: 1}
}

/* === ACCREDITATIONS SECTION =================================== */
.accreditations-section {
    padding-top: 40px;
    padding-bottom: 40px;
    display: flex;
    justify-content: space-evenly;
    background-color: var(--very-light-grey);
}

.accreditations-section img {
    height: 4vw;
}



/* === CTA SECTION =================================== */
.CTA {
    padding-top: 70px;
    padding-bottom: 70px;
    text-align: center;
    background-color: var(--accent-color-1);
    background: 
        var(--gradient-2),
        url("../media/hero-4.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

.CTA h2 {
    font-size: 2.5rem;
    color: white;
    padding-bottom: 20px;
}

.CTA h4 {
    color: white;
}

.CTA p {
    color: white;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 1em;
}
/* === MAP =================================== */
.map {
    width: 100%;
    height: 400px;
    background-color: var(--very-light-grey);
    border: 0;
    filter: grayscale(100%);
    transition: 0.5s;
}

.map:hover, .map:active {
    filter: grayscale(0%);
}



/* === AREAS COVERED  =================================== */
.areas-covered {
    background-color: var(--very-light-grey);
}


/* === FOOTER =================================== */
footer {
    width: 100%;
    padding-bottom: 0;
    text-align: center;
    background-color: rgb(10, 10, 10);
    color: white;
    z-index: -1;
}

.footer-col-container {
    display: flex;
    margin:  0;
    padding-bottom: 50px;
    justify-content: space-between;
    align-items: first baseline;
    gap: 20px;
}

.footer-col {
    flex-basis: 100%;
}

.footer-col p {
    margin: 0.2em;
    font-size: 1.4rem;
    font-family: var(--header-text);
    font-weight: 400;
}

footer p, #tel {
    color: var(--very-light-grey);
    font-weight: 400;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.4em;
}

footer h3 {
    padding-top: 20px;
}

.footer-col i {
    display: block;
    font-size: 3rem;
    margin-bottom: 0.5em;
    color: var(--accent-color-1);
    transition: 0.3s;
}

.footer-col img {
    display: block;
    height: 25px;
    padding-bottom: 0.1em;
    margin: 0 auto;
}

.footer-col img:hover {
    opacity: 0.8;
}

.footer-col a {
    text-decoration: none;
}

.footer-col:hover.footer-col i {
    scale: 1.1;
    filter: brightness(1.1);
}

.logo-mask {
    width: 15%;
    aspect-ratio: 3;
    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);
}


.socials {
    margin: 1em 0;
}

.socials p {
    padding: 0;
    padding-bottom: 0.3em;
}

.socials-container {
    display: flex;
    justify-content: center;
    gap: 2em;
    align-items: flex-start;
}

.social-icon {
    opacity: 0.7;
    transition: opacity 0.3s;
}

.social-icon:hover {
    opacity: 1;
}

.social-icon img {
    height: 30px;
}

#instagram-icon {
    height: 30px;
}

.footer-accreditations {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 60px 0 10px 0;
}

.footer-accreditations img {
    display: inline-block;
    height: 70px;
    width: auto;
    filter: brightness(0.6);
}

.footer-bottom {
    display: flex;
    margin-top: 10px;
    padding: 1em 0; 
    flex-wrap: wrap;
    border-top: 1px solid white;
    justify-content: space-between;
    filter: brightness(0) invert(1) opacity(0.3);
}

.footer-bottom a {
    color: white;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.footer-copyright, .footer-built-by {
    display: inline-block;
    margin: 0rem;
    font-size: 0.8rem;
    text-align: left;
    line-height: 1em;
    color: white;
}

.footer-built-by {
    text-align: right;
}

.mobile-full-width {
    display: none;
    width: 100%;
}

/* === SCROLL ANIMATIONS =================================== */
@media (prefers-reduced-motion: no-preference) {
    /* FADE IN ------------------------------- */
    .fade-in {
        opacity: 0;
    }

    .fade-in-animation {
        animation: fade-in 1s ease forwards;
    }
    
    @keyframes fade-in {
        from {opacity: 0;}
        to {opacity: 1;}
    }

    /* SLIDE LEFT ----------------------------*/
    .slide-left {
        opacity: 0;
    }

    .slide-left-animation {
        animation: slide-left 1s ease forwards;
    }
    
    @keyframes slide-left {
        from {
            transform: translateX(-100%);
            opacity: 0;
        } to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    /* SLIDE RIGHT ----------------------------*/
    .slide-right {
        opacity: 0;
    }    
    .slide-right-animation {
        animation: slide-right 1s ease forwards;
    }
    
    @keyframes slide-right {
        from {
            transform: translateX(100%);
            opacity: 0;
        } to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    /* SLIDE DOWN ----------------------------*/   
    .slide-down {
        opacity: 0;
    } 

    .slide-down-animation {
        animation: slide-down 1s ease forwards;
    }
    
    @keyframes slide-down {
        from {
            transform: translateY(-100%);
            opacity: 0;
        } to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    /* SLIDE UP ----------------------------*/ 
    .slide-up {
        opacity: 0;
    }       

    .slide-up-animation {
        animation: slide-up 1s ease forwards;
    }
    
    @keyframes slide-up {
        from {
            transform: translateY(100%);
            opacity: 0;
        } to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    /* PULSE ----------------------------*/ 
    .pulse-animation {
        animation: pulse 0.7s ease forwards;
    }

    @keyframes pulse {
        0% {scale: 1}
        50% {scale: 1.1}
        100% {scale: 1}
    }

    /* ANIMATION DELAYS  ----------------------------*/  
    .delay-200ms{
        animation-delay: 200ms;
    }
    
    .delay-300ms{
        animation-delay: 300ms;
    }
    
    .delay-400ms{
        animation-delay: 400ms;
    }
    
    .delay-500ms{
        animation-delay: 500ms;
    }
    
    .delay-600ms{
        animation-delay: 600ms;
    }
    
    .delay-700ms{
        animation-delay: 700ms;
    }
    
    .delay-800ms{
        animation-delay: 800ms;
    }
    
    .delay-900ms{
        animation-delay: 900ms;
    }
    
    .delay-1000ms{
        animation-delay: 1000ms;
    }
}

/* Contact Page */
.contact .white-logo {
    opacity: 1;
}
.contact .form {
    background-color: white;
    text-align: center;
}

.contact .form p {
    text-align: left;
    margin-top: 50px;
}

.contact .form-wrapper {
    padding: 50px 0;
}

.contact .field-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
}

.contact .form-element {
    display: flex;
    flex-basis: 100%;
    padding: 20px 0;
    font-size: 1.4rem;
}

.contact .form-field {
    display: inline;
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--light-grey);
    padding: 0 0 4px 0;
    overflow-x: hidden;
    color: var(--dark-grey);
    transition: 0.3s;
}

.contact .form-field::placeholder {
    color: var(--medium-grey);
}

.contact .form-field:focus {
    background-color: rgb(238, 238, 238);   
}

.contact .form-icon {
    display: block;
    float: left; /* To equalize width */
    margin-right: 10px;
    color: var(--accent-color-1);
    width: 20px;
}

.contact #message  {
    height: 36px;
}

.contact #message:focus {
    height: 150px;
    overflow-y: auto;
}

.contact .CTA {
    display: block;
    height: 400px;
}

.contact .contacts-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2em;
}

.contact .phone-container {

}

.contact .contacts-container div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1em;
    background-color: var(--very-light-grey);
    border-radius: var(--border-radius);
}

.contact .contacts-container div p {
    text-align: center;
    margin: 0;
}

.contact .contacts-container div tel {
    font-size: 2rem;
    color: var(--accent-color-1);
    font-weight: 400;
}

.contact .contacts-container div address {
    font-size: 2rem;
    color: var(--accent-color-1);
    font-weight: 400;
    font-style: normal;
}

@media (max-width: 900px) {
    .contact .contacts-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .contact .form-element {
        font-size: 1.3rem;
    }

    .contact .field-wrapper {
        gap: 0;
        padding: 0;
    }
}

/* Services Page */
.services .page-hero {
    background-image: 
    var(--gradient-1),
    url("../media/services-hero.jpg");
}

.services .white-logo {
    opacity: 1;
}

.services .intro {
    background-color: white;
}

.services .intro h3 {
    text-align: center;
}

.services .intro .text-cols-3 {
    margin-top: 0.5em;
}

.services .normal-list li {
    color: var(--dark-grey);
}

.services section:nth-child(even) {
    background-color: var(--very-light-grey);
}

.services .renewables-section a:has(button) {
    text-align: center;
    display: block;
    margin: 0 auto;
}

.services .renewables-section h2, 
.services .renewables-section > p {
    text-align: center;
}

.services .renewables-grid-container {
    margin: 3em 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2em;
    text-align: left;
}

.services .renewables-grid-container div {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5em;
    border-bottom: 5px solid var(--accent-color-1);
    box-shadow: var(--box-shadow);
}

.services .renewables-grid-container div h3 {
    margin: 0;
    padding: 0;
}

.services #gas-safe-colour {
    width: 100%;
    margin: 0 auto;
}

.services .latest-work {
    background-color: var(--very-light-grey);
}

.services .learn-more-links {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: var(--accent-color-1);
    background-image: 
        var(--gradient-1),
        url("../media/hero-5.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.services .learn-more-links h3 {
    text-align: center;
    margin-bottom: 1em;
    color: white;
}

.services .learn-more-links a {
    display: block;
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    padding: 1em;
    font-size: 1.4rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.services .learn-more-links a i {
    color: var(--accent-color-1);
    transform: scale(0.7);
}

.services .learn-more-links a:hover {
    background-color: rgba(255,255,255,0.2);
}

.services .grey-bg {
    background-color: var(--very-light-grey);
}

.services .reason-section {
    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;
    background-attachment: fixed;
}

.services .reason-section h2 {
    text-align: center;
    margin-bottom: 1em;
    color: white;
}

.services .reason-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    align-items: stretch;
    justify-content: center;
    gap: 1%;
}

.services .reason {
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 1em;
    border-radius: calc(var(--border-radius)*2);
}

.services .reason h4 {
    text-align: center;
    filter: brightness(150%);
}

.services .reason i {
    display: block;
    font-size: 6rem;
    color: white;
    text-align: center;
    margin: 0.2em 0;
    opacity: 0.7;
}

.services .reason p {
    color: white;
}

.services .emergency-call-out {
    padding-top: 50px;
    padding-bottom: 50px;
    background-color: var(--accent-color-1) important!;
    background-image: 
        var(--gradient-6),
        url('../media/hero-5.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
}

.services .emergency-call-out h3, 
.services .emergency-call-out p {
    color: white;
}

.services .domestic-services {
    text-align: center;
}

.services .domestic-services ul {
    text-align: left;
}

.services .services-list {
    background-image: var(--gradient-2), url('../media/hero-5.jpg');
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

.services .services-list h2, 
.services .services-list p {
    text-align: center;
    color: white;
}

.services .services-list .text-cols-3 {
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
}

.services .services-list li {
    color: white;
}

@media (max-width: 1400px) {
    .services .reason-container {
        grid-template-columns: 1fr 1fr;
    }

    .services .reason h4 {
        font-size: 1.6rem;
    }
}

@media (max-width: 1200px) {
    .services .reason-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 800px) {
    .services .intro p {
        width: 100%;
    }

    .services section:nth-child(odd) .flex-container {
        flex-direction: column-;
    }

    .services section:nth-child(even) .flex-container {
        flex-direction: column-reverse;
    }

    .services .renewables-grid-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .services .reason-container {
        grid-template-columns: 1fr;
    }

    .services .emergency-call-out p {
        text-align: center;
    }

    .services .renewables-section h2, 
    .services .renewables-section p {
        text-align: left;
    }

    .services .renewables-grid-container div {
        padding: 1.5em 1em;
    }
}

/* Gallery pages */
.our-work .page-hero,
.building-rewires .page-hero,
.consumer-units .page-hero,
.emergency-lighting .page-hero,
.exterior-lighting .page-hero,
.interior-lighting .page-hero,
.other-work .page-hero {
  background-image: 
  var(--gradient-1),
  url("../media/our-work-hero.jpg");
}

.our-work .white-logo,
.building-rewires .white-logo,
.consumer-units .white-logo,
.emergency-lighting .white-logo,
.exterior-lighting .white-logo,
.interior-lighting .white-logo,
.other-work .white-logo {
  opacity: 1;
}

.our-work section p,
.building-rewires section p,
.consumer-units section p,
.emergency-lighting section p,
.exterior-lighting section p,
.interior-lighting section p,
.other-work section p {
  width: 70%;
  margin: 0 auto;
  text-align: center;
}

.our-work .gallery-grid,
.building-rewires .gallery-grid,
.consumer-units .gallery-grid,
.emergency-lighting .gallery-grid,
.exterior-lighting .gallery-grid,
.interior-lighting .gallery-grid,
.other-work .gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin: 5em 0;
  gap: 1vw;
  align-content: center;
}

.our-work .gallery-grid a,
.building-rewires .gallery-grid a,
.consumer-units .gallery-grid a,
.emergency-lighting .gallery-grid a,
.exterior-lighting .gallery-grid a,
.interior-lighting .gallery-grid a,
.other-work .gallery-grid a {
  display: flex;
  width: 100%;
  padding: 1em 0;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 1.5;
  border-radius: calc(var(--border-radius)*1);
  background-color: rgba(0,0,0,0.1);
  background-position: center;
  background-size: cover;
  text-decoration: none;
  text-align: center;
  color: white;
  font-size: 1.4vw;
  font-weight: 500;
  border-bottom: 5px solid var(--accent-color-1);
  transition: 0.3s;
}

.our-work .gallery-grid a:hover,
.building-rewires .gallery-grid a:hover,
.consumer-units .gallery-grid a:hover,
.emergency-lighting .gallery-grid a:hover,
.exterior-lighting .gallery-grid a:hover,
.interior-lighting .gallery-grid a:hover,
.other-work .gallery-grid a:hover {
  box-shadow: var(--box-shadow);
  filter: brightness(130%);
  scale: 1.03;
}

.our-work .gallery-section,
.building-rewires .gallery-section,
.consumer-units .gallery-section,
.emergency-lighting .gallery-section,
.exterior-lighting .gallery-section,
.interior-lighting .gallery-section,
.other-work .gallery-section {
  background-color: white;
}

.our-work .gallery-section > p:nth-child(1),
.building-rewires .gallery-section > p:nth-child(1),
.consumer-units .gallery-section > p:nth-child(1),
.emergency-lighting .gallery-section > p:nth-child(1),
.exterior-lighting .gallery-section > p:nth-child(1),
.interior-lighting .gallery-section > p:nth-child(1),
.other-work .gallery-section > p:nth-child(1) {
  margin-bottom: 3em;
}

.our-work .gallery-section:nth-child(even),
.building-rewires .gallery-section:nth-child(even),
.consumer-units .gallery-section:nth-child(even),
.emergency-lighting .gallery-section:nth-child(even),
.exterior-lighting .gallery-section:nth-child(even),
.interior-lighting .gallery-section:nth-child(even),
.other-work .gallery-section:nth-child(even) {
  background-color: var(--very-light-grey);
}

.our-work .gallery,
.building-rewires .gallery,
.consumer-units .gallery,
.emergency-lighting .gallery,
.exterior-lighting .gallery,
.interior-lighting .gallery,
.other-work .gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding-top: 16px;
  padding-bottom: 90px;
}

.our-work .gallery-item,
.building-rewires .gallery-item,
.consumer-units .gallery-item,
.emergency-lighting .gallery-item,
.exterior-lighting .gallery-item,
.interior-lighting .gallery-item,
.other-work .gallery-item {
  width: 100%;
  background-color: var(--very-light-grey);
  border-radius: var(--border-radius);
  transition: 0.3s;
  aspect-ratio: 1;
}

.our-work .gallery-item img,
.building-rewires .gallery-item img,
.consumer-units .gallery-item img,
.emergency-lighting .gallery-item img,
.exterior-lighting .gallery-item img,
.interior-lighting .gallery-item img,
.other-work .gallery-item img {
  display: block;
  width: 100%;
  border-radius: var(--border-radius);
}

.our-work .gallery-item:hover,
.building-rewires .gallery-item:hover,
.consumer-units .gallery-item:hover,
.emergency-lighting .gallery-item:hover,
.exterior-lighting .gallery-item:hover,
.interior-lighting .gallery-item:hover,
.other-work .gallery-item:hover {
  transform: scale(1.01);
  filter: brightness(90%);
  overflow: hidden;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.our-work .gallery-section a:has(button),
.building-rewires .gallery-section a:has(button),
.consumer-units .gallery-section a:has(button),
.emergency-lighting .gallery-section a:has(button),
.exterior-lighting .gallery-section a:has(button),
.interior-lighting .gallery-section a:has(button),
.other-work .gallery-section a:has(button) {
  display: block;
  margin-bottom: 1em;
  text-align: center;
}

.our-work .fb-iframe,
.building-rewires .fb-iframe,
.consumer-units .fb-iframe,
.emergency-lighting .fb-iframe,
.exterior-lighting .fb-iframe,
.interior-lighting .fb-iframe,
.other-work .fb-iframe {
  width: 1200px;
}

@media(max-width: 1000px) {
  .our-work section p,
  .building-rewires section p,
  .consumer-units section p,
  .emergency-lighting section p,
  .exterior-lighting section p,
  .interior-lighting section p,
  .other-work section p {
    width: 100%;
    text-align: left;
  }

  .our-work .gallery,
  .building-rewires .gallery,
  .consumer-units .gallery,
  .emergency-lighting .gallery,
  .exterior-lighting .gallery,
  .interior-lighting .gallery,
  .other-work .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1000px) {
  .our-work .gallery-grid,
  .building-rewires .gallery-grid,
  .consumer-units .gallery-grid,
  .emergency-lighting .gallery-grid,
  .exterior-lighting .gallery-grid,
  .interior-lighting .gallery-grid,
  .other-work .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3vw;
  }

  .our-work .gallery-grid a,
  .building-rewires .gallery-grid a,
  .consumer-units .gallery-grid a,
  .emergency-lighting .gallery-grid a,
  .exterior-lighting .gallery-grid a,
  .interior-lighting .gallery-grid a,
  .other-work .gallery-grid a {
    aspect-ratio: 2/1;
    font-size: 3vw;
  }
}

@media (max-width: 600px) {
  .our-work .gallery-grid,
  .building-rewires .gallery-grid,
  .consumer-units .gallery-grid,
  .emergency-lighting .gallery-grid,
  .exterior-lighting .gallery-grid,
  .interior-lighting .gallery-grid,
  .other-work .gallery-grid {
    grid-template-columns: 1fr;
  }

  .our-work .gallery-grid a,
  .building-rewires .gallery-grid a,
  .consumer-units .gallery-grid a,
  .emergency-lighting .gallery-grid a,
  .exterior-lighting .gallery-grid a,
  .interior-lighting .gallery-grid a,
  .other-work .gallery-grid a {
    font-size: 6vw;
    padding: 0.5em 0;
  }
}

@media (max-width: 500px) {
  .our-work .gallery,
  .building-rewires .gallery,
  .consumer-units .gallery,
  .emergency-lighting .gallery,
  .exterior-lighting .gallery,
  .interior-lighting .gallery,
  .other-work .gallery {
    /* grid-template-columns: auto auto; */
  }
}

/* Reviews page */
.reviews :root {
    --profile-photo-width: 150px;
}

.reviews .white-logo {
    opacity: 1;
}

.reviews .page-hero {
    background-image: 
    var(--gradient-1),
    url("../media/reviews-hero.jpg");
}

.reviews .review-section {
    background-color: var(--very-light-grey);
}

.reviews .review-section > p {
    width: 70%;
    text-align: center;
    margin: 0 auto;
    padding-bottom: 1em;
}

.reviews .review-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 3%;
    margin-top: 4em;
    max-width: 600px;
    margin: 0 auto;
}

.reviews .review-card {
    width: 100%;
    position: relative;
    margin-bottom: 4em;
    padding: 5% 3%;
    background-color: white;
    border-radius: calc(var(--border-radius));
    box-shadow: 0px 5px 10px grey;
    border-bottom: 5px solid var(--accent-color-2);
}



.reviews .review-card-text {
 
    font-size: 1.2rem;
}

.reviews .review-card-text i {
    color: var(--light-grey);
}

.reviews .review-card-text::before {
    content: url('../media/svg/quote-left-solid.svg');
    display: inline-block;
    width: 50px;
    height: 50px;
    margin-right: 0px;
    transform: translateY(8px);
}



.reviews .location {
    float: right;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--medium-grey);
}

.reviews .review-name {
    color: grey;
    display: inline;
    float: right;
}

.reviews .review-stars {
    display: inline;
    color: var(--accent-color-1);
}

.reviews .google-reviews {
    z-index: 0;
}

@media (max-width: 1000px) {
    .reviews .review-grid {
        max-height: none;
        height: auto;
    }

    .reviews .review-card {
        width: 100%;
        padding: 5% 5%;
    }

    .reviews .review-section > p {
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 650px) {
    .reviews .review-card-text {
        font-size: 1.1rem;
    }

    .reviews .review-name {
        font-size: 1.4rem;
    }
}