/* wrapper */
.wrapper {
  margin: 0 auto;
}
@media (min-width: 768px) {
  .wrapper {
    max-width: 69rem;
  }
}
@media (min-width: 1024px) {
  .wrapper {
    max-width: 90rem;
  }
}
@media (min-width: 1200px) {
  .wrapper {
    max-width: 110rem;
  }
}

/* navigation */
.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 3.5rem 2.4rem;
}

.logo {
  display: inline-block;
  width: 200px;
  height: 25px;
}

.nav_menu {
  list-style: none;
  background-color: var(--primary-black-clr);
  position: absolute;
  left: -100%;
  top: 9rem;
  width: 100%;
  padding: 4.8rem 2.4rem;
  transition: 0.3s ease;
  z-index: 5;
}
.nav_menu.active {
  left: 0;
}
.nav_link,
.nav_link:visited {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.4rem;
  color: var(--primary-white-clr);
}
.nav_menu *:not(:last-child) {
  margin-bottom: 3rem;
}
.hamburger {
  display: block;
  cursor: pointer;
  z-index: 4;
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #1d1c1e;
  margin: 5px auto;
  transition: 0.3s ease-in-out;
}
.overlay {
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0rem;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: none;
}
.overlay.active {
  display: block;
}
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
  .navbar {
    padding: 6rem 0;
  }
  .nav_menu {
    width: max-content;
    position: relative;
    top: 0;
    left: 0;
    display: flex;
    gap: 4rem;
    padding: 0rem 0rem;
    background-color: var(--primary-white-clr);
  }
  .nav_link,
  .nav_link:visited {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.4rem;
    color: var(--secondary-dark-grey-clr);
    letter-spacing: var(--letter-spacing-sm);
    padding: 0.5rem 0;
    transition: 0.3s ease;
    position: relative;
  }
  .nav_link:hover {
    color: var(--secondary-light-peach-clr);
    /* text-decoration: underline; */
  }

  .nav_link::after {
    content: "";
    background-color: var(--secondary-light-peach-clr);
    height: 3px;
    width: 100%;
    position: absolute;
    left: 0;
    bottom: -10px;
    opacity: 0;
    transition: 0.3s ease;
  }
  .nav_link:hover::after {
    bottom: 0;
    opacity: 1;
  }
  .nav_menu *:not(:last-child) {
    margin-bottom: 0rem;
  }
  .overlay {
    display: none;
  }
}

/* buttons */

.btn-dark {
  display: inline-block;
  padding: 1.8rem 2.5rem;
  background-color: var(--primary-white-clr);
  color: var(--secondary-dark-grey-clr);
  font-size: var(--fs-100);
  border-radius: 8px;
  border: none;
  text-decoration: none;
  text-transform: uppercase;
  transition: 0.3s ease;
  cursor: pointer;
  letter-spacing: 1px;
}
.btn-dark:hover {
  background-color: var(--secondary-light-peach-clr);
  color: var(--primary-white-clr);
}
.btn-light {
  display: inline-block;
  padding: 1.8rem 2.5rem;
  background-color: var(--primary-peach-clr);
  color: var(--primary-white-clr);
  font-size: var(--fs-100);
  border-radius: 8px;
  border: none;
  text-decoration: none;
  text-transform: uppercase;
  transition: 0.3s ease;
  cursor: pointer;
  letter-spacing: 1px;
}
.btn-light:hover {
  background-color: var(--secondary-light-peach-clr);
  color: var(--primary-white-clr);
}
/* section-cta */
.cta {
  background-color: var(--primary-peach-clr);
  background-image: url(../assets/home/desktop/bg-pattern-hero-home.svg);
  background-size: contain;
  background-position: 100px 150px;
  background-repeat: repeat;
  margin: 0 2.4rem;
  padding: 6.4rem 2.4rem;
  display: flex;
  flex-direction: column;
  place-items: center;
  gap: 3.4rem;
  text-align: center;
  border-radius: 15px;
  color: var(--primary-white-clr);
  position: relative;
  bottom: 0;
  transform: translateY(50%);
  transition: 0.3s ease;
}
.cta_text-heading {
  font-size: var(--fs-300);
  line-height: var(--line-height-lg);
  margin-bottom: 1rem;
}
.cta_text-paragraph {
  font-size: var(--fs-100);
  line-height: var(--line-height-sm);
}

@media (min-width: 768px) {
  .cta {
    transform: translateY(25%);
    margin: 0;
  }
}

@media (min-width: 1024px) {
  .cta {
    flex-direction: row;
    padding: 7.2rem 9.5rem;
    text-align: start;
    margin: 0;
    justify-content: space-between;
    align-items: center;
  }
  .cta_text-container {
    flex-basis: 50%;
  }
}

/* footer section */
.footer {
  background-color: var(--primary-black-clr);
}
.footer_wrapper {
  padding: 25rem 2.4rem 6.4rem;
  text-align: center;
}
.footer_upper-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6.5rem;
  position: relative;
  margin-bottom: 4rem;
}
.footer_logo-container {
  width: 20rem;
  height: 2.7rem;
}
.footer_nav::before {
  content: "";
  width: 100%;
  height: 1px;
  background: var(--primary-white-clr);
  opacity: 0.1;
  position: absolute;
  left: 0;
  top: 5.9rem;
}
.footer_nav {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}
.footer_nav-link {
  color: var(--primary-white-clr);
  font-size: var(--fs-100);
  letter-spacing: var(--letter-spacing-sm);
  text-transform: uppercase;
  text-decoration: none;
  transition: 0.3s ease;
}
.footer_nav-link:hover {
  color: var(--secondary-light-peach-clr);
  text-decoration: underline;
}
.footer_lower-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  color: var(--primary-white-clr);

  font-size: var(--fs-100);
}
.footer_address,
.footer_contact {
  opacity: 0.5;
}
.footer_social-media-links {
  display: flex;
  gap: 1.6rem;
}
.footer_social-media-links * {
  cursor: pointer;
  transition: 0.3s ease;
}
.footer_social-media-links *:hover {
  opacity: 0.5;
}

@media (min-width: 768px) {
  .footer_wrapper {
    padding: 16rem 0 8rem;
    max-width: 69rem;
    margin: 0 auto;
  }
  .footer_upper-container {
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 6rem;
  }
  .footer_nav {
    flex-direction: row;
    gap: 4.2rem;
  }
  .footer_nav-link {
    font-size: 1.4rem;
  }
  .footer_lower-container {
    flex-direction: row;
    /* justify-content: space-between; */
  }
  .footer_address {
    margin-right: 3rem;
  }
  .footer_social-media-links {
    margin-left: auto;
    align-self: flex-end;
  }
}
@media (min-width: 1024px) {
  .footer_wrapper {
    padding: 14rem 0 7.2rem;
    max-width: 90rem;
    margin: 0 auto;
  }
  .footer_address {
    margin-right: 6rem;
  }
}
@media (min-width: 1200px) {
  .footer_wrapper {
    padding: 14rem 0 7.2rem;
    max-width: 110rem;
    margin: 0 auto;
  }
  .footer_address {
    margin-right: 8rem;
  }
}

/*design-pages-banner */

.design-banner {
  background-color: var(--primary-peach-clr);
  background-image: url("../assets/web-design/desktop/bg-pattern-intro-web.svg");
  background-position: center;
  padding: 10rem 2.4rem;
  color: var(--primary-white-clr);
  text-align: center;
}
.design-banner_heading {
  font-size: var(--fs-400);
  margin-bottom: 2.4rem;
}
.design-banner_text {
  font-size: 15px;
  line-height: var(--line-height-sm);
}

@media (min-width: 768px) {
  .design-banner {
    padding: 6.4rem 10rem;
    border-radius: 15px;
  }
}
@media (min-width: 1024px) {
  .design-banner {
    padding: 6.4rem 19rem;
  }
}

/*design pages - designs */

.designs {
  padding: 9.6rem 2.4rem;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(47.8rem, auto);
  gap: 4rem;
}
.design {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, 16rem);
  border-radius: 15px;
  overflow: hidden;
}
.design_img-container {
  grid-row: 1/3;
}
.design_img-container img {
  width: 100%;
  height: 100%;
  /* object-fit: contain; */
}
.design_text-container {
  background-color: rgba(255, 173, 155, 0.2);
  padding: 3.2rem 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  transition: 0.3s ease;
  cursor: pointer;
}
.design_text-container:hover {
  background-color: var(--primary-peach-clr);
}
.design_title {
  color: var(--primary-peach-clr);
  font-size: var(--fs-200);
  letter-spacing: var(--letter-spacing-lg);
  transition: 0.3s ease;
  text-transform: uppercase;
}
.design_desc {
  font-size: var(--fs-100);
  line-height: var(--line-height-sm);
  color: var(--secondary-dark-grey-clr);
  transition: 0.3s ease;
}
.design_text-container:hover .design_title,
.design_text-container:hover .design_desc {
  color: var(--primary-white-clr);
}

@media (min-width: 768px) {
  .designs {
    padding: 12rem 0;
    grid-auto-rows: minmax(31rem, auto);
  }
  .design {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }
  .design_text-container {
    justify-content: center;
  }
}
@media (min-width: 1024px) {
  .designs {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(47rem, auto);
    gap: 3rem;
  }
  .design {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 16rem);
  }
}

/* locations in about and contact page */

.locations {
  margin: 12rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4.8rem;
}
.location {
  display: flex;
  flex-direction: column;
  place-items: center;
  text-align: center;
  gap: 4.8rem;
}
.location_img-bg-container {
  background-image: url("../assets/shared/desktop/bg-pattern-small-circle.svg");
}
.location_title {
  font-size: var(--fs-200);
  color: var(--secondary-dark-grey-clr);
  letter-spacing: var(--letter-spacing-lg);
  text-transform: uppercase;
  margin-bottom: 3.2rem;
  font-weight: 500;
}

@media (min-width: 1024px) {
  .locations {
    margin: 16rem 0;
    grid-template-columns: repeat(3, 1fr);
  }
}
