/* ============================================================
   FOOTER  (css/footer.css)
   Copied VERBATIM from rwhome.css (footer, social icons and the
   footer part of its mobile block). Do not edit here.
   ============================================================ */

/* ============================================================
   FOOTER (flex layout - replaces the old float-based rules)
   ============================================================ */
#footer
{
  float: left;
  box-sizing: border-box;
  width: 100%;
  margin: 2% 0 0 0;
  padding: 5% 10% 3% 10%;
  background-image: url(../images/footer-pattern.svg);
  background-repeat: repeat-x;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

#footer-left
{
  font-family: "ClashDisplay";
  font-size: 1rem;
  font-weight: bold;
  color: #B70000;
}

#footer-left br { display: none; }   /* legacy </br> in the markup */

.fimg
{
  display: block;
  width: 25vw;
  min-width: 150px;
  max-width: 100%;
  height: auto;
}

.copyright
{
  display: block;
  margin: .6rem 0 0 4.8vw;   /* sits under the logo wordmark */
}

/* nav links + contact button in one wrapping row, social row below */
#footer-right
{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .6rem 1.25rem;
  max-width: 100%;
  font-family: "ClashDisplay";
  font-size: 1.2rem;
  font-weight: normal;
  color: #B70000;
}

#footer-right > a
{
  padding: 0;
  text-decoration: none;
  color: #B70000;
}

#footer-right > a:hover
{
  text-decoration: underline;
  color: #000;
}

#footer-right > a.mail
{
  margin: 0;
  padding: 5px 15px;
  color: #fff;
  background-color: #bf0000;
  border-radius: 25px;
  text-align: center;
  transition-duration: .4s;
}

#footer-right > a.mail:hover
{
  background-color: #000;
  color: #fff;
  text-decoration: none;
}

#social
{
  flex: 0 0 100%;
  display: flex;
  flex-direction: row-reverse;   /* keeps the original left-to-right icon order */
  justify-content: flex-start;   /* with row-reverse, this means "right edge" */
  gap: 10px;
  margin: .6rem 0 0 0;
  padding: 0;
}

#social span
{
  float: none;
  display: block;
  flex: 0 0 auto;
  background-size: 100% 100%;
  background-position: center;
}

#social span a,
#social span img
{
  display: block;
  width: 36px;
  height: 36px;
}

#bottom-quote
{
  clear: both;              /* in normal flow, so the padding below really adds page height */
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: .5rem 5% .2rem;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  letter-spacing: .12rem;
  line-height: 1.5;
  font-size: .8rem;
  font-family: "ClashDisplay";
  text-shadow: 0 0 3px #0003;
}

/* Stack and centre the footer on tablets / phones.
   Placed OUTSIDE the other media query on purpose: that one has an
   unclosed brace (.serv-grid) which swallows rules placed after it. */
@media (max-width: 800px)
{
  #footer
  {
    padding: 8% 6% 4% 6%;
    justify-content: center;
    gap: 1.5rem;
  }

  #footer-left { width: 100%; text-align: center; }

  .fimg
  {
    width: 90vw;
  
    margin: 0 auto;
  }

  .copyright { margin: .75rem 0 0 0; }

  #footer-right
  {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
  }

  #social { justify-content: center; }
}


.linkedin
{background-image: url(../images/linked-off.svg);
  background-position: top;
  float: right;
  background-repeat: no-repeat;
}

.linkedin:hover
{background-image: url(../images/linkedin-on.svg);

}

.picturejockey
{background-image: url(../images/pjockey-off.svg);
  background-position: top;
  float: right;
  background-repeat: no-repeat;
}

.picturejockey:hover
{background-image: url(../images/pjockey-on.svg);

}
.instagram
{background-image: url(../images/insta-off.svg);
  background-position: top;
  float: right;
  background-repeat: no-repeat;
}

.instagram:hover
{background-image: url(../images/insta-on.svg);

}

.medium
{background-image: url(../images/medium-off.svg);
  background-position: top;
  float: right;
  background-repeat: no-repeat;
}

.medium:hover
{background-image: url(../images/medium-on.svg);

}

.behance
{background-image: url(../images/behance-off.svg);
  background-position: top;
  float: right;
  background-repeat: no-repeat;
}

.behance:hover
{background-image: url(../images/behance-on.svg);

}

/* footer rules from the large (max-width: 800px) block in rwhome.css */
@media (max-width: 800px) {
  #footer {
    float: none;
    width: 100%;
    padding: 8% 5% 5%;
    justify-content: center;
    gap: 1.5rem;
  }

  #footer-left { width: 100%; text-align: center; }
  .fimg { width: min(75vw, 260px); min-width: 0; margin: 0 auto; }
  .copyright { margin: .65rem 0 0; }

  #footer-right {
    width: 100%;
    justify-content: center;
    gap: .75rem 1rem;
    font-size: .95rem;
  }

  #social { justify-content: center; flex: 0 0 100%; }
  #social span a, #social span img { width: 32px; height: 32px; }

  #bottom-quote {
    font-size: .68rem;
    letter-spacing: .08rem;
    padding: .75rem 5%;
  }
}
