@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,200;6..12,300;6..12,400;6..12,500;6..12,600;6..12,700;6..12,800&display=swap');

:root {
  --light-gray: #f8f9fa;
  --lighter-gray: #f1f3f5;
  --dark-gray: #212529;
  --brand-red: #f03e3e;
  --dark-brand-red: #c92a2a;
  --pale-peach: #eacda3;
  --light-amber: #d6ae7b;
  --midnight-blue: #0f0c29;
  --dark-imperial-blue: #302b63;
  --plum: #24243e;

  /* Shadows */
  --gentle-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  --bold-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 62.5%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
  box-sizing: border-box;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito Sans', sans-serif;
  color: var(--dark-gray);
}

/* Hero */

.logo {
  width: 200px;
  align-self: flex-start;
}

.hero-section {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;

  height: 72vh;
  height: 90vh;
  text-align: center;
  padding: 30px 120px;
}

.navigation {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 125px;
  margin-bottom: 14rem;
}

.social-media {
  display: flex;
  position: relative;
  column-gap: 15px;
}

.social-media i {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  height: 60px;
  width: 60px;
  border-radius: 100%;
  background: var(--dark-gray);
  color: var(--light-gray);
  box-shadow: var(--gentle-shadow);
  transition: all 0.1s;
  position: relative;
}

.social-media i:not(:last-child) {
  margin-right: 10px;
}

.social-media i:hover {
  background: var(--brand-red);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-section .heading__h1 {
  width: 72%;
  margin-bottom: 10px;
  line-height: 1.2;
}

/* Clients */

.clients {
  padding: 48px 164px;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
}

.clients-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  width: 100%;
}

.client-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15%;
  padding: 1rem;
}

.client__ayala {
  width: 100%;
}
.client__fred {
  width: 80%;
}
.client__lebrun {
  width: 100%;
}
.client__lush {
  width: 72%;
}
.client__premier {
  width: 100%;
}

/* Services */

.services {
  /* padding: 164px 0; */
  padding: 104px 0;
  padding-bottom: 24px;
  /* box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset; */
}

.services .heading__h2 {
  /* font-size: 3.4rem; */
}

.services-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 64px 164px;
}

.services-item {
  height: 200px;
  width: 20.333%;
  padding: 1rem 2.8rem;
  background: linear-gradient(
    to bottom,
    var(--lighter-gray),
    var(--light-gray)
  );
  box-shadow: var(--gentle-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 1rem;
  position: relative;
  box-shadow: var(--bold-shadow);
  transition: all 0.2s;
}

.services-item::before {
  content: '';
  height: 100%;
  width: 100%;
  background: linear-gradient(
    to bottom,
    var(--brand-red),
    var(--dark-brand-red)
  );
  top: 50%;
  left: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.2s;
}

.services-item:hover {
  background: transparent;
}

.services-item:hover::before {
  opacity: 1;
}

.service-icon--web-design {
  height: 100px;
  width: 100px;
  position: absolute;
  left: 10%;
  top: 10%;
  z-index: 100;
  background: url('../images/services/TopCreative-WebDesign-icon.png') no-repeat
    center center/contain;
}

.services-item:hover .service-icon--web-design {
  background: url('../images/services/TopCreative-WebDesign-icon-white.png')
    no-repeat center center/contain;
}

.service-icon--graphic-design {
  height: 100px;
  width: 100px;
  position: absolute;
  left: 10%;
  top: 10%;
  z-index: 100;
  background: url('../images/services/TopCreative-GraphicDesign-icon.png')
    no-repeat center center/contain;
}

.services-item:hover .service-icon--graphic-design {
  background: url('../images/services/TopCreative-GraphicDesign-icon-white.png')
    no-repeat center center/contain;
}

.service-icon--social-media {
  height: 100px;
  width: 100px;
  position: absolute;
  left: 10%;
  top: 10%;
  z-index: 100;
  background: url('../images/services/TopCreative-SocialMedia-icon.png')
    no-repeat center center/contain;
}

.services-item:hover .service-icon--social-media {
  background: url('../images/services/TopCreative-SocialMedia-icon-white.png')
    no-repeat center center/contain;
}

.service-icon--video-editing {
  height: 100px;
  width: 100px;
  position: absolute;
  left: 10%;
  top: 10%;
  z-index: 100;
  background: url('../images/services/TopCreative-VideoEditing-icon.png')
    no-repeat center center/contain;
}

.services-item:hover .service-icon--video-editing {
  background: url('../images/services/TopCreative-VideoEditing-icon-white.png')
    no-repeat center center/contain;
}

.service-icon--product-photography {
  height: 100px;
  width: 100px;
  position: absolute;
  left: 10%;
  top: 10%;
  z-index: 100;
  background: url('../images/services/TopCreative-ProductPhotography-icon.png')
    no-repeat center center/contain;
}

.services-item:hover .service-icon--product-photography {
  background: url('../images/services/TopCreative-ProductPhotography-icon-white.png')
    no-repeat center center/contain;
}

.service-icon--email-marketing {
  height: 100px;
  width: 100px;
  position: absolute;
  left: 10%;
  top: 10%;
  z-index: 100;
  background: url('../images/services/TopCreative-EmailMarketing-icon.png')
    no-repeat center center/contain;
}

.services-item:hover .service-icon--email-marketing {
  background: url('../images/services/TopCreative-Email-Marketing-icon-white.png')
    no-repeat center center/contain;
}

.services-item .heading__h3 {
  position: absolute;
  bottom: 15%;
  left: 15%;
  z-index: 100;
  text-transform: capitalize;
}

.services-item:hover .heading__h3 {
  color: #fff;
}

.heading__h3 span {
  font-weight: 800;
}

/* contact */
.contact {
  position: relative;
  padding: 164px;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  padding-right: 17%;
  align-items: center;
  justify-content: flex-end;
  height: 82vh;
  background: url('../images/Contact-bg-min.jpg') no-repeat center center/cover;
}

.contact-left-container {
  width: 30%;
  height: 400px;
  position: relative;
  margin-right: 170px;
}

.contact-image-container {
  width: 100%;
  height: 490px;
  background: var(--brand-red);
  clip-path: polygon(0 0, 78% 0, 100% 100%, 24% 100%);
}

.contact-image {
  width: 900px;
  position: absolute;
  bottom: -42%;
  left: 50%;
  transform: translateX(-40%);
  z-index: 10;
}

.form {
  position: absolute;
  bottom: -8.2%;
  display: flex;
  flex-wrap: wrap;
  height: 48rem;
  justify-content: space-between;
  align-content: flex-start;
  width: 55%;
  width: 35%;
  width: 31.8%;
  box-shadow: var(--gentle-shadow);
  padding: 3rem 2.8rem;
  padding: 2rem 3.4rem;
  background: rgba(236, 236, 236, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 0.4rem;
  box-shadow: var(--bold-shadow);
}

.form-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  /* padding: 3rem; */
  width: 100%;
  margin-bottom: 3.5rem;
}

.form-group-half {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  width: 45%;
  margin-bottom: 3.5rem;
}

.form .heading__h2 {
  font-size: 2.4rem;
  width: 80%;
  font-weight: 400;
  line-height: 1.4;
  text-transform: capitalize;
  margin-bottom: 2.8rem;
}

.form .heading-h3-pos {
  position: relative;
}

.form .heading__h3 {
  top: -0.8%;
  margin-bottom: 1.4rem;
  line-height: 0;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--brand-red);
}

.form :nth-child(3),
.form :nth-child(4) {
  margin-bottom: 2.8rem;
}

.form .heading__h3:nth-child(5) {
  margin-top: 4.8rem;
  color: red;
}

input[type='text'],
input[type='tel'],
input[type='email'] {
  width: 100%;
  border: 0;
  top: 0;
  left: 0;
  height: 4rem;
  height: 3.2rem;
  padding: 0.1rem;
  padding-left: 1.8rem;
  font-size: 1.2rem;
  outline: none;
  background: none;
}

input[type='text'] + .form-label,
input[type='tel'] + .form-label,
input[type='email'] + .form-label,
.form_message + .form-label {
  position: absolute;
  font-size: 1.2rem;
  color: var(--dark-gray);
  top: 27px;
  left: 31px;
  left: 2px;
  outline: none;
  transition: all 0.1s;
}

/* The input has a placeholder with  " " empty space so perhaps that will allow us to use apply styling with the :placeholder attribute */
.form-group input[type='email']:not(:placeholder-shown) + .form-label,
.form-group:focus-within input[type='email'] + .form-label {
  position: absolute;
  font-size: 1rem;
  top: -25px;
  /* left: 31px; */
  left: 15px;
  left: 2px;
  color: var(--dark-brand-red);
  color: var(--light-gray);
  font-weight: 800;
  /* border-bottom: 2.3px solid black; */
  background: var(--dark-brand-red);
  border-radius: 0.4rem;

  padding: 0.2rem 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-group-half:focus-within input[type='text'] + .form-label,
.form-group-half input[type='text']:valid + .form-label,
.form-group:focus-within input[type='text'] + .form-label,
.form-group input[type='text']:valid + .form-label,
.form-group:focus-within input[type='tel'] + .form-label,
.form-group input[type='tel']:valid + .form-label {
  position: absolute;
  font-size: 1rem;
  top: -25px;
  /* left: 31px; */
  left: 15px;
  left: 2px;
  color: var(--dark-brand-red);
  color: var(--light-gray);
  font-weight: bold;
  /* border-bottom: 2.3px solid black; */
  background: var(--dark-brand-red);
  border-radius: 0.4rem;

  padding: 0.2rem 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-group:focus-within .form_message + .form-label,
.form-group .form_message:not(:placeholder-shown) + .form-label {
  position: absolute;
  font-size: 1rem;
  top: -38px;
  /* left: 31px; */
  left: 15px;
  left: 2px;
  color: var(--dark-brand-red);
  color: var(--light-gray);
  font-weight: bold;
  /* border-bottom: 2.3px solid black; */
  background: var(--dark-brand-red);
  border-radius: 0.4rem;

  padding: 0.2rem 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-group-last {
  margin-top: 1.8rem;
}

.form_message {
  min-width: 100%;
  max-width: 100%;
  min-height: 5rem;
  max-height: 5rem;
  background: 0;
  font-size: 1.2rem;
  padding: 0.1rem;
  padding-left: 1.8rem;
  border: 0;
  outline: 0;
  font-family: 'Nunito Sans', sans-serif;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 25vh;
}

.footer-text {
  font-size: 0.8rem;
}

@media (max-width: 430px) {
  .hero-section {
    padding: 1.9rem 0.5rem;
    height: 100vh;
    min-height: 100vh;
  }

  .navigation {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 9.2rem;
  }

  .social-media i {
    font-size: 1.2rem;
    height: 45px;
    width: 45px;
  }

  .social-media i:not(:last-child) {
    margin-right: 10px;
  }

  .hero-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-section .heading__h1 {
    width: 90%;
    font-size: 3rem;
    /* text-align: left; */
    margin-bottom: 3rem;
    line-height: 1.2;
    font-weight: 700;
  }

  p.lead {
    font-size: 1.9rem;
    margin-bottom: 6.2rem;
  }

  /* Clients */

  .clients {
    padding: 4rem 1px;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    /* height: 110vh; */
  }

  .clients-wrapper {
    display: flex;
    flex-direction: column;
    /* align-content: center; */
    /* justify-content: center; */
    width: 50%;
  }

  .client-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0rem;
  }

  .services {
    padding-top: 54px;
  }

  .services-wrapper {
    padding: 1rem;
  }

  .services-item {
    width: 100%;
  }

  .contact {
    padding: 0.8rem;
  }
  .form {
    position: static;
    width: 90%;
    padding: 4rem 1.4rem;
    height: auto;
  }

  .form .heading__h3 {
    font-size: 1.4rem;
  }

  .form .heading__h2 {
    font-size: 1.8rem;
    width: 100%;
  }

  .service-icon--social-media,
  .service-icon--video-editing,
  .service-icon--product-photography,
  .service-icon--email-marketing,
  .service-icon--graphic-design,
  .service-icon--web-design {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .services-item .heading__h3 {
    position: absolute;
    bottom: 15%;
    left: 50%;
    z-index: 100;
    text-transform: capitalize;
    transform: translateX(-50%);
    text-align: center;
  }

  .services-item {
    height: 180px;
  }
}
