:root {
  /* Custom Properties */
  --ff-sans: "futura-pt", "Jost", "europa", Arial, Tahoma, sans-serif;
  --ff-serif: "garamond-premier-pro-caption", Georgia, serif;
  --ff-title: "ff-meta-correspondence-web-p", sans-serif;
  /****************************************************************
  *   Note: Extract font is New Letter Gothic, which **IS NOT** a *
  *   Adobe font, instead have opted for FF Meta Correspondance   *
  ****************************************************************/

  /* Colours */
  /* Neutrals */
  --clr-neutral-100: #ffffff;
  --clr-neutral-400: #f2f2f2;
  --clr-neutral-700: #707070;
  --clr-neutral-900: #45443b;

  /* Primaries - Blue */
  --clr-primary-300: #094173;
  --clr-primary-400: #073a73;
  --clr-primary-500: #032340;

  /* Secondaries - Red */
  --clr-secondary-400: #d90416;
  --clr-secondary-500: #bf0404;

  /* Other colours */
  --clr-light-400: #fbac2d;

  --clr-gradient: (
    135deg,
    #094173,
    #27417d,
    #403f84,
    #5a3c87,
    #723587,
    #8a2a82,
    #a01979,
    #b4006c,
    #c3005b,
    #cf0048,
    #d70032,
    #d90416
  );

  /* Font sizes - mobile */
  --fs-300: 1rem;
  --fs-400: 1rem;
  --fs-500: 1.125rem;
  --fs-600: 1.5rem;
  --fs-700: 1.75rem;
  --fs-900: 2rem;
}

/* Reset */

html {
  scroll-behavior: smooth;
}

*,
*::after,
*::before {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
figure {
  margin: 0;
  padding: 0;
}

body {
  text-align: center;
  color: var(--clr-neutral-900);
  font-size: var(--fs-400);
  font-family: var(--ff-sans);
}

h1,
h2,
h3,
h4 {
  font-family: var(--ff-title);
  line-height: 1;
}

p {
  margin: 0;
}

ul,
ul[class],
li {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/******************** 
*   Typography      *
********************/
.title {
  margin-top: 1rem;
  font-weight: bold;
  color: var(--clr-secondary-400);
}

.subtitle {
  font-family: var(--ff-title);
  font-size: var(--fs-500);
  color: var(--clr-primary-400);
}

.bold {
  font-weight: 700;
}

h1 {
  font-size: var(--fs-900);
}

h2 {
  font-size: var(--fs-700);
}

p {
  margin-top: 1rem;
}

.credit {
  color: var(--clr-neutral-100);
  background-color: rgba(7, 58, 115, 0.5);
  position: relative;
  transform: translateY(-50px);
  z-index: 999;
}

a {
  text-decoration: none;
  color: var(--clr-secondary-500);
}

a:hover,
a:focus {
  color: var(--clr-light-400);
}

.nav-link {
  color: var(--clr-neutral-400);
}

.nav-link:focus,
.nav-link:hover,
.fa-bars.btn:focus,
.fa-bars.btn:hover {
  color: var(--clr-secondary-400);
}

.fa-bars.btn:focus,
.fa-bars.btn:hover {
  border: solid 2px var(--clr-secondary-400);
}

ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/********************
*   Layout          *
********************/
section {
  padding: 1rem 0;
}

section + section {
  padding-top: 0;
}

.description {
  text-align: center;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.4;
}

.container,
.container-100 {
  width: 90%;
  margin: 0 auto;
}

/* ********************
*     Components      *
**********************/

/* navigation - mobile (deskop in media query) */
.nav {
  display: none;
}

.nav .nav-list .nav-item {
  margin-bottom: 0.25rem;
  padding: 0.8em 0;
}

header .split > * + * {
  margin-left: 1rem;
}

.nav-toggle {
  display: none;
  margin: 0 auto;
}

.nav-toggle:checked ~ .nav {
  display: flex;
  flex-direction: column;
  text-align: center;
}

/* Buttons */
/* burget button */
.fa-bars.btn {
  margin-top: 1rem;
  color: var(--clr-neutral-400);
  border: 2px solid var(--clr-neutral-400);
  border-radius: 0.25rem;
  padding: 0.25rem;
}

/* Generic button */
.btn {
  border-radius: 50px;
  margin: 1rem auto;
  padding: 1rem;
  color: var(--clr-neutral-400);
  background-color: var(--clr-primary-300);
}

.btn:hover,
.btn:focus {
  color: var(--clr-secondary-400);
  background-color: var(--clr-primary-400);
}

.btn:active {
  background-color: var(--clr-light-400);
  color: var(--clr-neutral-100);
}

/* Form button */
.submit-btn {
  margin: 1rem auto;
  width: 5rem;
  color: var(--clr-primary-500);
  background-color: var(--clr-neutral-400);
  border: 2px solid;
}

/* Back to top */
.btn-top {
  display: inline-block;
}

/* Header */
header {
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
  background-color: var(--clr-primary-400);
}

.logo {
  width: 50%;
  margin: 0;
  margin-left: auto;
  margin-right: auto;
}

/* Contact */
.contact-card {
  display: flex;
  flex-direction: column;
}

/* .contact-link {

} */

.logo-new {
  width: 6.25rem; /*100px - mobile and desktop*/
  margin: 1rem auto 0 auto;
}

.logo-company {
  width: 125px;
  margin: 1rem;
  margin-right: auto;
  margin-left: auto;
}

/* Footer */
footer {
  margin-top: auto;
  padding: 2rem 0;
  font-size: var(--fs-300);
  color: var(--clr-primary-500);
  background-color: var(--clr-neutral-400);
}

/* Sticky footer */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Utilities */
.thin {
  font-weight: lighter;
}

.display-toggle {
  display: none;
}

/* Contact Page */
form {
  display: flex;
  flex-direction: column;
}

.form-input,
.enquiry {
  font-family: inherit;
  font-size: var(--fs-400);
  margin-top: 1rem;
  padding: 1rem;
}

/*********************
*   Media Query(ies) *
*********************/
@media (min-width: 769px) {
  .btn-top {
    display: none;
  }
  .split {
    display: flex;
    flex-direction: column;
  }

  /* .display-toggle {
    display: block;
  } */

  /* Screenshots */
  .screenshots {
    margin-top: 2rem;
    order: 2;
  }

  .carousel {
    max-width: 100%;
    position: relative;
    margin: 0;
  }

  button {
    padding: 0.5rem;
    background: white;
    color: black;
    font-size: 1.25rem;
    font-weight: bold;
    border: 2px solid grey;
    border-radius: 100px;
    cursor: pointer;
  }

  .carousel .carousel-actions button {
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
  }

  button:hover,
  button:focus {
    background-color: royalblue;
    color: whitesmoke;
  }

  #carousel-btn-prev {
    margin-left: 1rem;
  }

  #carousel-btn-next {
    margin-right: 1rem;
  }

  .carousel .carousel-item,
  .carousel .carousel-item-hidden {
    display: none;
  }

  .carousel .carousel-item-visible {
    display: block;
    animation: fadeVisibility;
    /* animation-name: slide-right, fadeVisibility; */
    animation-duration: 2s;
  }

  .carousel .carousel-item img {
    width: 100%;
  }

  .carousel .carousel-actions {
    display: flex;
    width: 100%;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  @keyframes fadeVisibility {
    0% {
      opacity: 0;
    }

    100% {
      opacity: 1;
    }
  }

  @keyframes slide {
    from {
      margin-left: 100%;
      width: 100%;
    }
    to {
      margin-left: 0%;
      width: 100%;
    }
  }

  @keyframes slide-right {
    from {
      margin-left: -100%;
      width: 100%;
    }
    to {
      margin-left: 0%;
      width: 100%;
    }
  }
}

@media (min-width: 1024px) {
  /*old min: 380px*/
  :root {
    /* Font sizes - 'desktop' */
    --fs-300: 1rem;
    --fs-400: 1.125rem;
    --fs-500: 1.5rem;
    --fs-600: 1.75rem;
    --fs-700: 2rem;
    --fs-900: 2.5rem;
  }

  /* typography */
  ul {
    margin-left: 1rem;
    list-style-type: disc;
  }

  /* layout */
  .split > * + * {
    margin-left: 2rem;
  }
  /* Components */
  section {
    padding: 1rem 0;
  }

  section + section {
    padding-top: 1rem;
  }

  .container {
    width: 90%;
    margin: 0 auto;
  }

  .container-50 {
    flex-basis: 25%;
    margin: 0 3.125rem 0 auto; /*50px*/
  }

  .container-50-reverse {
    width: 50%;
    margin: 0 auto 0 3.125rem; /*50px*/
  }

  .container-100 {
    width: 100%;
    margin: 0 3.125rem; /*50px*/
  }

  .flex-container {
    display: flex;
  }

  .logo {
    max-width: 10rem;
    margin-left: 0;
    margin-right: auto;
  }

  /* Navigation */
  header {
    flex-direction: row;
    justify-content: space-between;
  }

  .nav {
    display: flex;
    flex-direction: row;
  }

  .nav .nav-list {
    display: flex;
    gap: 1rem;
  }

  /* Safari fall back for gap */
  nav ul > li + li {
    margin: 0 0 0 1rem;
  }

  .nav .nav-list .nav-item {
    margin: 0 0.25rem 0 0;
    padding: 0.8em 0;
  }

  .fa-bars.btn {
    display: None;
  }

  /* Contact card */
  .contact-card,
  .contact-btn {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 2rem;
  }

  .contact-card {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .contact-btn p {
    margin-top: 0.5rem;
  }
  /* .contact-link {

} */

  .logo-new {
    margin: 0 0.5rem 0 0.5rem;
  }

  .logo-company {
    margin: 0 1rem;
    width: 175px;
  }

  /* buttons */

  /* Utilities */
  .split {
    display: flex;
    flex-direction: row;
  }

  .flex-between {
    display: flex;
    justify-content: space-between;
  }

  .flex-between-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .flex-evenly {
    display: flex;
    justify-content: space-evenly;
  }

  .flex-evenly-column {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
  }

  .flex-reverse {
    display: flex;
    flex-direction: row-reverse;
  }

  .flex50 {
    flex-basis: 50%;
  }

  .text-left {
    text-align: left;
  }

  .text-center {
    text-align: center;
  }

  .text-right {
    text-align: right;
  }

  .margin-left {
    margin: 0 0 0 auto;
  }

  .margin-right {
    margin: 0 auto 0 0;
  }

  .display-toggle {
    display: block;
  }

  .screenshots,
  .buildings {
    width: 50%;
    background-color: var(--clr-primary-400); /*fallback colour */
    background-size: cover;
    background-repeat: no-repeat;
    /* unsplash call for random images tagged 'architecture' */
  }

  /* .buildings {
    background-image: url(/images/photo-of-person-standing-on-balcony-2004930.jpg); fallback image
  } */

  .screenshots {
    margin-top: 0;
    padding: 0;
    order: 0;
    display: flex;
    align-items: center;
  }

  .height-75,
  .unsplash {
    height: 75vh;
  }

  .unsplash {
    width: 100%;
  }

  /* Contact page */
  .contact-form .title {
    margin-top: 0;
  }

  .contact-form {
    max-width: 50%;
  }
}
