@import "./variables.css";

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

body {
  background: var(--bg-main);
  color: var(--primary-text-main);
  font: var(--reg-16);
}

.container {
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}


/* header */
.header {
  max-height: 100vh;
  height: 70vw;
  width: 100%;
  background: url('../assets/image/main.webp') center/cover no-repeat;
}

body.light .header {
  background-image: url('../assets/image/main-light.webp');
}

.header_top {
  display: grid;
  grid-template-columns: 1fr clamp(40px, 5vw, 50px);
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: clamp(10px, 4vw, 40px) 0;
}

.menu {
  display: block;
  position: relative;
  cursor: pointer;
  width: fit-content;
}

.menu_dropdown {
  min-width: 100%;
  padding: 15px;
  position: absolute;
  background: var(--bg-dropdown);
  z-index: 100;
  transition: 0.5s padding,
  0.5s background;
}

.menu_dropdown:after {
  content: "";
  display: block;
  height: 0;
  border-top: 5px solid var(--bg-dropdown);

  position: absolute;
  top: 100%;
  left: 0;
  z-index: 101;
  transition: 0.5s border-top;
}

.menu_dropdown > * {
  font: var(--reg-16);
  overflow: hidden;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0);
  white-space: nowrap;
  transition: 0.5s height cubic-bezier(0.73, 0.32, 0.34, 1.5),
  0.5s padding cubic-bezier(0.73, 0.32, 0.34, 1.5),
  0.5s margin cubic-bezier(0.73, 0.32, 0.34, 1.5), 0.5s 0.2s color,
  0.2s background-color;
}

.menu_dropdown > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu_dropdown > li > a > svg {
  width: clamp(26px, 6vw, 40px);
  height: clamp(26px, 6vw, 40px);
}
.instagram-icon:hover {
  color: #E1306C;
}
.phone-icon:hover {
  color: var(--col-ph-hover);
}
.menu_dropdown > li:first-child:hover {
  color: var(--col-tg-hover)
}

.menu_dropdown > li:last-child:hover {
  color: var(--col-ws-hover)
}

.menu:not(:hover) > .menu_dropdown {
  padding: 0;
  background: var(--bg-dropdown);
  z-index: 99;
}

.menu:not(:hover) > .menu_dropdown > * {
  visibility: hidden;
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  color: rgba(25, 25, 25, 0);
  transition: 0.5s 0.1s height, 0.5s 0.1s padding, 0.5s 0.1s margin, 0.3s color,
  0.6s visibility;
  z-index: 99;
}

.menu:not(:hover) > .menu_dropdown > li > a > svg {
  visibility: hidden;
}

.header_title {
  font: var(--title-1);
}

.header_des {
  font: var(--reg-16);
}

.header_icon {
  border: none;
  width: clamp(40px, 5vw, 50px);
  height: clamp(40px, 5vw, 50px);
  background: var(--bg-moon);
  border-radius: 100%;
  display: flex;
  padding: 10px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.3s ease;
  color: var(--theme-switcher);
}

body .header_icon > svg {
  display: none;
  transition: display 0.3s ease-in-out;
}

body.light .header_icon > .moon {
  display: none;
}

body.light .header_icon > .sun {
  display: block;
}

body .header_icon > .moon {
  display: block;
}

.header_icon:hover {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3),
  0 0 4px rgba(255, 255, 255, 0.2) inset;
  transform: scale(1.05);
}

.header_icon > svg {
  width: 100%;
  height: 100%;
}

.btn_header {
  margin-top: 10vw;
}

.btn {
  border: none;
  background: var(--bg-button);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  transition: 0.3s ease;
  font: var(--reg-16);
  font-weight: 600;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(249, 115, 22, 0.45);
}

/* our section*/
.our > h2 {
  font: var(--title-2);
  margin-top: 24px;
}

.cards_list {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-content: space-between;
}

.card {
  text-align: center;
}

.card > p {
  font: var(--reg-16);
}

.card > svg {
  height: clamp(40px, 10vw, 100px);
  width: clamp(40px, 10vw, 100px);
  color: var(--bg-button);
}

/*texts section*/
.texts {
  margin-top: 40px;
}

.texts_content {
  display: grid;
  height: fit-content;
  gap: 30px;
}

.texts h3 {
  font: var(--title-3);
}

.texts p {
  font: var(--reg-18);
}

/* socials section*/
.socials {
  padding: 20px 0;
}

.socials_list {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, clamp(26px, 6vw, 40px));
}

.socials_list > a {
  width: clamp(26px, 6vw, 40px);
  height: clamp(26px, 6vw, 40px);
  transition: color 0.3s ease-in-out;
}

.socials_list > a:first-child:hover {
  color: var(--col-ws-hover);
}

.socials_list > a:last-child:hover {
  color: var(--col-tg-hover);
}


/*media query */
@media only screen and (max-width: 500px) {
  .header_top {
    align-items: flex-start;
  }
}
