/* Css variables */
:root {
  --white: #f1f8f6;
  --text-green: #1c542f;
  --bg-green: #173020;
  --cta-green: #055712;
}

/* Reset and Globals */
*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  height: 100%;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--white);
  background-color: var(--bg-green);
  overflow-x: hidden;
  width: 100%;
  height: 100%;
}

.container {
  display: grid;
  padding: 0 6.25%;
  grid-template-columns: repeat(12, 1fr);
  width: 100%;
}

.bg-white {
  background-color: var(--white);
  color: var(--text-green);
}

.pointer {
  cursor: pointer;
}

.underline {
  text-decoration: underline;
}

/* Margins */
.m-t-32 {
  margin-top: 32px;
}

.m-b-8 {
  margin-bottom: 8px;
}

.m-b-16-ld-32 {
  margin-bottom: 16px;
}

/* Paddings */
.sd-p-b-12 {
  padding-bottom: 12px;
}

.sd-p-t-b-16 {
  padding-top: 16px;
  padding-bottom: 16px;
}

.p-t-b-32-ld-64 {
  padding-top: 32px;
  padding-bottom: 32px;
}

.p-t-b-64-ld-128 {
  padding-top: 64px;
  padding-bottom: 64px;
}

@media screen and (min-width: 980px) {
  .p-t-b-32-ld-64 {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .p-t-b-64-ld-128 {
    padding-top: 128px;
    padding-bottom: 128px;
  }
}

/* Text classes */

.tac {
  text-align: center;
}

h1 {
  font-size: calc(44px + (60 - 44) * ((100vw - 320px) / (1440 - 320)));
  font-weight: 600;
}

h2 {
  font-size: calc(34px + (46 - 34) * ((100vw - 320px) / (1440 - 320)));
  font-weight: 600;
}

h3 {
  font-size: calc(20px + (24 - 20) * ((100vw - 320px) / (1440 - 320)));
  font-weight: 600;
}

.hook {
  font-size: calc(26px + (32 - 26) * ((100vw - 320px) / (1440 - 320)));
  font-weight: 600;
}

p,
.body {
  font-size: 16px;
  line-height: 140%;
  font-weight: 400;
}

@media screen and (min-width: 980px) {
  p,
  .body {
    font-size: 18px;
  }
}

.nav-link {
  font-weight: 500;
}

/* Buttons and links */

button,
a,
.primary-button,
.secondary-button {
  font-size: 16px;
  font-weight: 700;
}

button {
  border: none;
  font-size: 16px;
  background: transparent;
}

a {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text-color);
  text-decoration: none;
  width: fit-content;
}

.primary-button {
  color: var(--white);
  background-color: var(--cta-green);
  border-radius: 100px;
  padding: 16px 32px;
  transition: all 0.6s ease-in-out;
}

.primary-button:hover {
  background-color: var(--white);
  color: var(--cta-green);
}

.secondary-button {
  color: var(--cta-green);
  background-color: var(--white);
  border-radius: 100px;
  padding: 4px 8px;
  transition: all 0.6s ease-in-out;
}

.white-phone-icon {
  top: 9px;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.6s ease-in-out;
}

.secondary-button:hover {
  color: var(--white);
  background-color: var(--cta-green);
}

.secondary-button:hover .white-phone-icon {
  opacity: 1;
}

footer .secondary-button {
  padding: 12px 24px;
}

@media screen and (min-width: 800px) {
  .secondary-button {
    padding: 8px 16px;
  }
}

/* Text animations (hover) */
.underline-on-hover-from-left::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  background-color: var(--white);
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s ease-in-out;
}

.underline-on-hover-from-left:hover::after {
  transform: scaleX(1);
}

/* Positions */

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

/* Grid Parents */
.grid {
  display: grid;
}

.justify-items-center {
  justify-items: center;
}

.row-g-8 {
  row-gap: 8px;
}

.row-g-16 {
  row-gap: 16px;
}

.row-g-32 {
  row-gap: 32px;
}

.row-g-48 {
  row-gap: 48px;
}

.row-g-48-ld-128 {
  row-gap: 48px;
}

.row-g-64 {
  row-gap: 64px;
}

@media screen and (min-width: 980px) {
  .row-g-48-ld-128 {
    row-gap: 128px;
  }
}

/* Flex Parents */

.flex {
  display: flex;
}

.justify-content-sb {
  justify-content: space-between;
}

.aic {
  align-items: center;
}

.col-g-8 {
  column-gap: 8px;
}

/* Grids Childs */

.gc-full {
  grid-column: 1/13;
}

.gc-full-ld-1-4 {
  grid-column: 1/13;
}

.gc-full-ld-5-12 {
  grid-column: 1/13;
}

.gc-1-4 {
  grid-column: 1/4;
}

.gc-5-12-ld-7-12 {
  grid-column: 5/13;
}

@media screen and (min-width: 980px) {
  .gc-full-ld-1-4 {
    grid-column: 1/4;
  }

  .gc-full-ld-5-12 {
    grid-column: 5/13;
  }

  .gc-5-12-ld-7-12 {
    grid-column: 7/13;
  }
}

/* Images Container */
.img-container {
  width: 100%;
  height: 100%;
  max-width: calc(100vw - 12.5% - 21px);
}

.img-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 24px;
}

/* Header */
.header {
  top: 0;
  left: 0;
  padding-top: 12px;
  padding-bottom: 12px;
  background-color: var(--bg-green);
  z-index: 10;
}

.logo {
  width: 100%;
  min-width: 80px;
}

.navbar {
  top: 52px;
  left: 100%;
  background-color: var(--bg-green);
  color: var(--white);
  width: 100%;
}

.mobile-nav-element-1 {
  padding-right: 6.25%;
  padding-left: 6.25%;
  background-color: var(--bg-green);
  transition: transform 0.6s ease-in-out;
}

.mobile-nav-element-2 {
  padding-right: 6.25%;
  padding-left: 6.25%;
  background-color: var(--bg-green);
  transition: transform 0.8s ease-in-out;
}

.navbar.open .mobile-nav-element-1,
.navbar.open .mobile-nav-element-2 {
  transform: translateX(-100%);
}

@media screen and (min-width: 800px) {
  .burger-icon {
    display: none;
  }

  .navbar {
    position: static;
    color: var(--white);
    width: unset;
  }

  .navbar ul {
    display: flex;
    justify-content: space-between;
    column-gap: 32px;
  }

  .mobile-nav-element-1 {
    padding: 0;
  }

  .mobile-nav-element-2 {
    padding: 0;
  }
}

/* Hero */
.hero {
  background: url(../public/hero_background.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding-top: 128px;
  padding-bottom: 128px;
}

/* Qualities */
.card {
  padding: 32px;
  background-color: var(--white);
  color: var(--text-green);
  border-radius: 16px;
}

@media screen and (min-width: 980px) {
  .qualities-list {
    display: flex;
    flex-wrap: wrap;
    column-gap: 16px;
  }
  .qualities-list li {
    width: calc(50% - 8px);
  }
}

/* My Work */
.work-images {
  max-height: 710px;
}

.work-images img {
  height: 100%;
  max-height: 680px;
  /* width: unset; */
}

.work-images::before {
  content: attr(data-text);
  height: 21px;
}

@media screen and (min-width: 980px) {
  .client {
    display: flex;
    column-gap: 32px;
    align-items: flex-start;
  }
  .client-text {
    width: 100%;
  }

  .work-images img {
    max-width: 100%;
    height: 100%;
  }

  .flex-order-last {
    order: 3;
  }
}

/* Footer */
@media screen and (min-width: 980px) {
  footer.container {
    display: flex;
    justify-content: space-between;
  }

  footer .secondary-button {
    height: fit-content;
  }
}
