/* ======  COMMON STYLES =================== */

:root {
  --iris: #4d5ae5;
  --ocean: #404bbf;
  --navy-blue: #2e2f42;
  --green: #31d0aa;
  --slate: #434455;
  --light-slate: #8e8f99;
  --cornflower: #e7e9fc;
  --cloud: #f4f4fd;
  --navy-blue-modal: rgba(46, 47, 66, 0.4);
  --grey: rgba(46, 47, 66, 0.7);
  --white: #ffffff;
  --dairy: #fcfcfc;
  --font-family: "Roboto", sans-serif;
  --second-family: "Raleway", sans-serif;
  --link-line: none;
  --list-style-type: none;
}

body {
  background-color: var(--white);
  color: var(--slate);
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
  margin-bottom: 0;
}

ul,
ol {
  list-style-type: var(--list-style-type);
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
}

img {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;

  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.container {
  max-width: 1158px;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.section {
  padding-top: 120px;
  padding-bottom: 120px;
}

.section-title {
  color: var(--navy-blue);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.11111;
  letter-spacing: 0.02em;
  text-align: center;
}

.list-title {
  color: var(--navy-blue);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* ================== /COMMON STYLES ====== */

/* ================  HEADER ================= */

.page-header {
  border-bottom: 1px solid var(--cornflower);
  box-shadow:
    0 1px 6px 0 rgba(46, 47, 66, 0.08),
    0 1px 1px 0 rgba(46, 47, 66, 0.16),
    0 2px 1px 0 rgba(46, 47, 66, 0.08);
}

.header-container {
  display: flex;
  justify-content: space-between;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 40px;
}

.contact-list {
  display: flex;
  column-gap: 40px;
}

.nav-link,
.contact-link {
  display: block;
  padding-top: 24px;
  padding-bottom: 24px;
}

.nav-link-pseudo {
  position: relative;
}

.nav-link-pseudo::after {
  content: "";
  display: block;
  width: 100%;
  border-radius: 2px;
  height: 4px;
  background-color: var(--ocean);

  position: absolute;
  left: 0;
  bottom: -1px;
}

/* .nav-link-pseudo:hover::after,
.nav-link-pseudo:focus::after {
  background-color: var(--ocean);
} */

.logo {
  color: var(--navy-blue);
  font-family: var(--second-family);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.16667;
  text-transform: uppercase;
  text-decoration: var(--link-line);
  letter-spacing: 0.03em;

  margin-right: 76px;
}

.logo {
  color: var(--navy-blue);
}

.half-logo {
  color: var(--iris);
}

.nav-link {
  color: var(--navy-blue);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: var(--link-line);
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--ocean);
}

.nav .nav-link.current {
  color: var(--ocean);
}

.contact {
  font-style: normal;
}

.contact-link {
  color: var(--slate);
  font-size: 16px;
  line-height: 1.5;
  text-decoration: var(--link-line);
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-link:hover,
.contact-link:focus {
  color: var(--ocean);
}

/* ============ /HEADER ============= */

/* =============== HERO ================ */

.hero {
  background-color: var(--navy-blue);
  background-image:
    linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
    url(../images/hero/bg-image.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.hero-container {
  padding-bottom: 188px;
  padding-top: 188px;
}

.hero-title {
  color: var(--white);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.07143;
  letter-spacing: 0.02em;
  text-align: center;

  max-width: 496px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
}

.hero-button {
  background-color: var(--iris);
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;

  display: block;
  margin-left: auto;
  margin-right: auto;
  padding: 16px 32px;
  border: none;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  background: var(--iris);

  cursor: pointer;

  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-button:hover,
.hero-button:focus {
  background-color: var(--ocean);
}

/* ============= /HERO ================ */

/* ======= OUR FEATURES =========== */

.features {
  background-color: var(--white);
}

.features-list {
  display: flex;
  gap: 24px;
}

.features-item {
  width: calc((100% - 72px) / 4);
}

.features-icon-box {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 100px;
  margin-bottom: 8px;
  border: 1px solid var(--light-slate);
  border-radius: 4px;
  width: 264px;
  height: 112px;
  background: var(--cloud);
}

.features-text {
  margin-top: 8px;
}

/* ======= /OUR FEATURES =========== */

/* =============== OUR TEAM ============== */

.team {
  background-color: var(--cloud);
}

.team-heading {
  margin-bottom: 72px;
}

.team-title {
  color: var(--navy-blue);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
}

.team-list {
  display: flex;
  gap: 24px;
}

.team-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 32px 16px;
}

.list-item {
  background-color: var(--white);
  width: calc((100% - 72px) / 4);
  border-radius: 0 0 4px 4px;
  box-shadow:
    0 2px 1px 0 rgba(46, 47, 66, 0.08),
    0 1px 1px 0 rgba(46, 47, 66, 0.16),
    0 1px 6px 0 rgba(46, 47, 66, 0.08);
}

.list-item .team-text {
  text-align: center;
}

.social-list {
  display: flex;
  justify-content: center;
  column-gap: 24px;
}

.social-list-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: var(--iris);
  fill: var(--cloud);
  border-radius: 50%;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.social-list-link:hover,
.social-list-link:focus {
  background-color: var(--ocean);
}

.social-icon {
  width: 16px;
  height: 16px;
}
/* ============= /OUR TEAM =========== */

/* ============== PORTFOLIO ============= */

.portfolio-title {
  margin-bottom: 72px;
}

.portfolio-list {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 24px;
}

.portfolio-item {
  width: calc((100% - 48px) / 3);
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover {
  box-shadow:
    0 2px 1px 0 rgba(46, 47, 66, 0.08),
    0 1px 1px 0 rgba(46, 47, 66, 0.16),
    0 1px 6px 0 rgba(46, 47, 66, 0.08);
}

.overlay-box {
  position: relative;
  overflow: hidden;
}

.overlay {
  color: var(--cloud);
  background-color: var(--iris);
  position: absolute;
  top: 0;
  left: 0;
  width: 360px;
  height: 300px;
  padding: 40px 32px;
  /* padding-top: 40px;
  padding-bottom: 164px;
  padding-right: 32px;
  padding-left: 32px; */
  overflow: auto;
  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .overlay {
  transform: translateY(0%);
}

.portfolio-box {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 8px;

  border-bottom: 1px solid var(--cornflower);
  border-left: 1px solid var(--cornflower);
  border-right: 1px solid var(--cornflower);
  padding: 32px 16px;
}

/* ================== /PORTFOLIO ======== */

/* ================ FOOTER =============== */

.page-footer {
  background-color: var(--navy-blue);
  padding-top: 100px;
  padding-bottom: 100px;
}

.footer-logo {
  color: var(--cloud);
  font-family: var(--second-family);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.16667;
  text-transform: uppercase;
  text-decoration: var(--link-line);
  letter-spacing: 0.03em;
}

.footer-text {
  color: var(--cloud);
  font-weight: 400;

  max-width: 264px;
  margin-top: 16px;
}

.footer {
  display: flex;
  align-items: baseline;
}

.footer-box {
  margin-right: 120px;
}

.footer-social-text {
  font-weight: 500;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-social-icon {
  width: 24px;
  height: 24px;
}

.footer-social-list {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: row;
  gap: 16px;
}

.footer-social-link {
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-link:hover,
.footer-social-link:focus {
  background-color: var(--green);
}

/* ================== /FOOTER =========== */
