:root {
  --red-400: hsl(7, 99%, 70%);
  --yellow-500: hsl(51, 100%, 49%);
  --green-800: hsl(167, 40%, 24%);
  --blue-800: hsl(198, 62%, 26%);
  --green-500: hsl(167, 34%, 41%);
  --grey-950: hsl(212, 27%, 19%);
  --grey-600: hsl(213, 9%, 39%);
  --grey-550: hsl(232, 10%, 55%);
  --grey-400: hsl(210, 4%, 67%);
  --white: hsl(0, 100%, 100%);
  --cream: hsl(26, 100%, 99%);
  --footer-green: hsl(167, 44%, 70%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

h1 {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: clamp(32px, 11.2vw, 42px);
  line-height: 1.2;
  color: hsl(0, 100%, 100%);
  text-transform: uppercase;
  letter-spacing: 0.19em;
}

img {
  max-width: 100%;
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  z-index: 1;
}

.hero {
  position: relative;
}

.hero-title {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  top: 100px;
}

.arrow-hero {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 55%;
}

.img {
  max-width: 100%;
  display: block;
}

.body {
  margin: 0;
  font-family: "Barlow", sans-serif;
  font-size: 18px;
  color: var(--grey-550);
  background-color: var(--cream);
}

.menu-mobile {
  display: block;
  background: none;
  border: none;
}

.nav {
  display: flex;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition-property: opacity, visibility, transform;
  transition-duration: 0.3s;
  transition-timing-function: ease-in-out;
  position: absolute;
  top: calc(100% + 30px);
  left: 24px;
  right: 24px;
  padding: 24px;
  justify-content: center;
  background-color: hsl(26, 100%, 99%);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.nav a {
  text-decoration: none;
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  color: hsl(232, 10%, 55%);
}

.nav a:not(.button-header) {
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0 2px;
  transition-property: background-size, color;
  transition-duration: 0.3s;
  transition-timing-function: ease-in-out;
}

.nav a:not(.button-header):hover,
.nav a:not(.button-header):focus-visible {
  background-size: 100% 2px;
  color: var(--grey-950);
}

.nav .button-header {
  background-color: hsl(51, 100%, 49%);
  padding: 12px 28px;
  border-radius: 30px;
  display: inline-block;
  color: hsl(212, 27%, 19%);
  font-family: "Fraunces", serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  transition-property: background-color, color;
  transition-duration: 0.3s;
  transition-timing-function: ease-in-out;
}

.nav::before {
  content: "";
  position: absolute;
  top: -24px;
  right: 0;
  width: 0;
  height: 0;
  border-left: 24px solid transparent;
  border-bottom: 24px solid hsl(26, 100%, 99%);
}

@media (min-width: 769px) {
  .nav {
    display: flex;
    position: static;
    background: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav a {
    color: hsl(0, 100%, 100%);
  }
  .nav a:not(.button-header):hover,
  .nav a:not(.button-header):focus-visible {
    color: hsl(0, 100%, 100%);
  }
  .menu-mobile {
    display: none;
  }
  .nav-list {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .arrow-hero {
    top: 45%;
  }
  .nav .button-header {
    background-color: hsl(0, 100%, 100%);
  }
  .nav .button-header:hover {
    background-color: hsla(0, 100%, 100%, 0.2);
    color: hsl(0, 100%, 100%);
  }
  .nav::before {
    display: none;
  }
}

.nav.nav-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.transform,
.standout {
  display: flex;
  flex-direction: column-reverse;
}

.transform-text,
.standout-text {
  padding: 64px 24px;
  text-align: center;
}

.transform-title,
.standout-title {
  font-family: "Fraunces", serif;
  font-weight: 700;
  color: var(--grey-950);
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 24px;
}

.transform-description,
.standout-description {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  color: var(--grey-550);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.transform-image img,
.standout-image img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.button {
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--grey-950);
  position: relative;
  z-index: 0;
  display: inline-block;
}

.button::before {
  content: "";
  position: absolute;
  top: 9px;
  left: -5px;
  right: -5px;
  bottom: -3px;
  border-radius: 10px;
  background-color: hsla(51, 100%, 49%, 0.3);
  z-index: -1;
  transition-property: background-color;
  transition-duration: 0.3s;
  transition-timing-function: ease-in-out;
}

.button:hover::before {
  background-color: var(--yellow-500);
}

.standout .button::before {
  background-color: hsla(7, 99%, 70%, 0.3);
}

.standout .button:hover::before {
  background-color: var(--red-400);
}

@media (min-width: 769px) {
  .transform {
    display: flex;
    flex-direction: row;
  }
  .standout {
    display: flex;
    flex-direction: row-reverse;
  }
  .transform > div,
  .standout > div {
    flex-basis: 50%;
  }
  .transform-text,
  .standout-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
  }
  .transform-text {
    padding: 64px 7.9% 64px 11.5%;
  }
  .standout-text {
    padding: 64px 12% 64px 7.8%;
  }
  .transform-image picture,
  .standout-image picture {
    display: block;
    height: 100%;
  }
  .transform-image img,
  .standout-image img {
    height: 100%;
  }
}

.graphic-design,
.photography {
  position: relative;
}

.graphic-design-text,
.photography-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  text-align: center;
  padding: 0px 24px 64px 24px;
}

.graphic-design-text h2,
.photography-text h2 {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 24px;
}

.graphic-design-text p,
.photography-text p {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.7;
  max-width: 330px;
  margin-bottom: 0;
}

.graphic-design-text {
  color: var(--green-800);
}

.photography-text {
  color: var(--blue-800);
}

.graphic-design-image,
.photography-image {
  width: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 769px) {
  .graphic-design-photography {
    display: flex;
    flex-direction: row;
  }
  .graphic-design,
  .photography {
    flex-basis: 50%;
  }
  .graphic-design-image,
  .photography-image {
    min-height: 520px;
  }
}

.testimonials {
  padding: 64px 24px 80px;
}

.testimonials h2 {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 5px;
  text-transform: uppercase;
  text-align: center;
  color: var(--grey-400);
  margin-bottom: 48px;
}

.testimonial {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  text-align: center;
}

.testimonial + .testimonial {
  margin-top: 64px;
}

.testimonial img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 32px;
}

.testimonial figure {
  margin: 0;
}

.testimonial blockquote {
  margin: 0 0 32px;
}

.testimonial blockquote p {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.75;
  color: var(--grey-600);
  max-width: 350px;
  margin: 0 auto;
}

.testimonial figcaption {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 17px;
  color: var(--grey-950);
}

.testimonial figcaption span {
  display: block;
  margin-top: 8px;
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--grey-400);
}

@media (min-width: 769px) {
  .testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px;
    max-width: 1152px;
    margin: 0 auto;
    padding: 160px 24px;
  }
  .testimonials h2 {
    grid-column: 1 / -1;
    margin-bottom: 72px;
  }
  .testimonial + .testimonial {
    margin-top: 0;
  }
  .testimonial img {
    margin-bottom: 56px;
  }
  .testimonial blockquote {
    margin-bottom: 64px;
  }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.gallery img {
  width: 100%;
  display: block;
}

@media (min-width: 769px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 68px 24px 80px;
  background-color: var(--footer-green);
}

.footer .logo {
  display: block;
  margin-bottom: 48px;
}

.footer .logo img {
  display: block;
  filter: brightness(0) saturate(100%) invert(38%) sepia(24%) saturate(1265%)
    hue-rotate(118deg) brightness(89%) contrast(70%);
}

.footer nav {
  margin-bottom: 88px;
}

.footer nav ul {
  display: flex;
  gap: 58px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer nav a {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--green-500);
  text-decoration: none;
  transition-property: color;
  transition-duration: 0.3s;
  transition-timing-function: ease-in-out;
}

.footer nav a:hover {
  color: var(--white);
}

.social-media {
  display: flex;
  gap: 28px;
}

.social-media img {
  display: block;
  transition-property: filter;
  transition-duration: 0.3s;
  transition-timing-function: ease-in-out;
}

.social-media a:hover img {
  filter: brightness(0) invert(1);
}

@media (max-width: 359px) {
  .footer nav ul {
    gap: 32px;
  }
}

.resizing *,
.resizing *::before,
.resizing *::after {
  transition: none !important;
}
