:root {
  --off-white: #fafaf2;
  --off-black: #434343;
  --accent-color: #8dbb22;
  --bg-light: #fffefb;

  --border-radius: 1.5rem;

  --transition: all 0.3s ease-in-out;
  --section-spacing: 7.5rem;
  --site-width: 1350px;
  --gap: 1.5rem;
  --padding: 45px;

  @media screen and (max-width: 1024px) {
    --section-spacing: 5rem;
  }
}

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

button {
  background-color: transparent;
  cursor: pointer;
  border: none;
}

html {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  tab-size: 4;
  scroll-behavior: smooth;
  /* overflow-x: hidden; */
}

ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
  border: none;
  outline: none;
}

body {
  margin: 0;
  background-color: var(--bg-light);
  overflow-x: hidden;
}

.center-content {
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 1rem;

  @media screen and (min-width: 1200px) {
    padding: 0;
  }
}

.single-hero {
  height: 245px;
  border: solid 1px var(--off-black);
  border-radius: var(--gap);
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;

  margin-top: var(--padding);
  overflow: hidden;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .single-hero__title {
    font-size: 42px;
    padding: var(--padding);
    font-weight: 700;
    display: block;
    color: var(--off-black);
  }

  margin-bottom: 60px;
}

.breadcrumbs {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--off-black);
  font-size: 1rem;
  font-weight: 500;

  @media screen and (max-width: 600px) {
    flex-direction: column;
  }
  a {
    color: var(--off-black);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 400;
    &:hover {
      color: var(--accent-color);
    }
  }
  .icon {
    font-size: 11px;
    @media screen and (max-width: 600px) {
      transform: rotate(90deg);
    }
  }
}

.about-section {
  margin-top: var(--section-spacing);
  padding: var(--padding);
  background-color: #f5f5f5;
  border-radius: var(--gap);
  display: flex;
  gap: var(--gap);
  /* overflow: hidden; */
  flex-direction: column;

  @media screen and (min-width: 1200px) {
    flex-direction: row;
    margin-left: 0;
    margin-right: 0;
    /* overflow: hidden; */
  }

  .about-section__title {
    margin-bottom: var(--gap);
  }

  .about-section__image {
    position: relative;
    /* border: solid 1px red; */
    img {
      position: relative;
      z-index: 2;
      max-width: 100%;
      border-radius: var(--border-radius);
    }
    transition: var(--transition);
  }
  .about-section__blob {
    position: absolute;
    top: -100px;
    left: -100px;
    z-index: 1;
    transition: all 0.5s ease-in-out;

    @media screen and (max-width: 1024px) {
      display: none;
    }
  }

  &:hover {
    .about-section__blob {
      transform: rotate(20deg);
    }
    .about-section__image {
      opacity: 0.9;
    }
  }
}

.services-section {
  margin-top: var(--section-spacing);
  .services-section__content {
    margin-top: var(--padding);
    gap: var(--gap);
    height: 500px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    @media screen and (max-width: 1024px) {
      grid-template-columns: repeat(2, 1fr);
      height: auto;
      padding: 1rem;
    }
    @media screen and (max-width: 480px) {
      grid-template-columns: repeat(1, 1fr);
      padding: 0;
    }

    .services-section__card {
      height: 100%;
      display: flex;
      border-radius: var(--gap);
      overflow: hidden;
      flex-direction: column;
      padding: var(--padding);
      align-items: flex-start;
      justify-content: flex-end;
      position: relative;

      transition: var(--transition);

      @media screen and (max-width: 1024px) {
        height: auto;
        text-align: center;
        align-items: center;
        justify-items: center;
      }

      .gradient-mask {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50%;
        background: linear-gradient(
          to bottom,
          rgba(255, 255, 255, 0),
          rgba(0, 0, 0, 0.3)
        );
        z-index: 3;
        opacity: 0;
        transition: var(--transition);
      }

      &:hover {
        transform: translateY(-5px);
        .gradient-mask {
          opacity: 1;
        }
      }

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
      }

      .services-section__card-content {
        display: flex;
        flex-direction: column;
        gap: var(--gap);
        max-width: 80%;
        position: relative;
        z-index: 4;
      }
      .services-section__item-title {
        font-weight: 500;
        font-family: 'Oswald', sans-serif;
        color: var(--off-white);
        font-size: 52px;
        line-height: 1;

        @media screen and (max-width: 1024px) {
          font-size: 32px;
          line-height: 1.3;
        }
      }
      .services-section__item-description {
        font-size: 1.2rem;
        font-weight: 300;
        color: var(--off-white);
      }
    }
  }
}

.social-proof-video-section {
  margin-top: var(--section-spacing) !important;
  display: flex;
  gap: var(--gap);

  @media screen and (max-width: 1024px) {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .social-proof-video-section__video {
    background-color: #eee;
    width: 375px;
    height: 590px;
    border-radius: var(--gap);
    border: solid 1px var(--accent-color);
    /* overflow: hidden; */
    position: relative;
    z-index: 2;

    @media screen and (max-width: 1024px) {
      width: 100%;
      max-height: 560px;
    }
    video {
      border-radius: var(--gap);
      width: 100%;
      height: 100%;
      object-fit: cover;
      position: relative;
      z-index: 2;
    }
    .social-proof-video-section__blob {
      position: absolute;
      bottom: -100px;
      right: -100px;
      display: block;
      z-index: 1;
      object-fit: cover;
      transition: all 0.5s ease-in-out;

      @media screen and (max-width: 1024px) {
        display: none;
      }
    }
    .social-proof-video-section__mask {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 2;
      background-color: rgba(0, 0, 0, 0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: var(--gap);
      transition: var(--transition);
      cursor: pointer;

      display: none;
      &.active {
        display: flex;
      }

      .social-proof-video-section__mask__play-button {
        width: 80px;
        height: 80px;
        border: solid 1px var(--accent-color);
        border-radius: 100%;
        transition: all 0.5s ease-in-out;
        display: none;
        &.active {
          display: block;
        }
        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }

      &:hover {
        background-color: rgba(0, 0, 0, 0.3);
        .social-proof-video-section__mask__play-button {
          transform: scale(1.1);
        }
      }
    }

    &:hover {
      .social-proof-video-section__blob {
        transform: rotate(-20deg);
      }
    }
  }
  .social-proof-video-section__text {
    display: flex;

    padding: var(--padding);
    background-color: #fff;
    border-radius: var(--gap);
    position: relative;

    z-index: 2;

    flex-direction: column;
    gap: var(--gap);
    align-items: flex-start;
    justify-content: flex-start;

    .social-proof-video-section__title {
      color: var(--off-black);
      font-size: 52px;
      font-family: 'Oswald', sans-serif;
      font-weight: 600;
      line-height: 1.2;
    }
  }
}

.portfolio-section {
  @media screen and (max-width: 1024px) {
    padding: 0 1rem;
  }
  margin-top: var(--section-spacing) !important;

  .section-header {
    margin-bottom: var(--padding);
  }
  .portfolio-section__masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(434px, 1fr));
    gap: var(--gap);

    @media screen and (max-width: 1024px) {
      grid-template-columns: 1fr;
      /* gap: 4rem; */
    }
    .portfolio-section__item {
      aspect-ratio: 2 / 3;
      border-radius: var(--gap);
      overflow: hidden;
      transition: var(--transition);

      @media screen and (max-width: 1024px) {
        aspect-ratio: 1 / 1;
      }
      &:hover {
        cursor: pointer;
        transform: scale(1.03);
      }
      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
  }
}

.blog-section {
  margin-top: var(--section-spacing) !important;

  &.single {
    margin-top: 60px !important;
  }
  .blog-section__items {
    margin-top: var(--padding);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(434px, 1fr));
    gap: var(--gap);

    row-gap: 2.625rem;

    @media screen and (max-width: 1024px) {
      grid-template-columns: 1fr;
      gap: 4rem;
    }
    .blog-section__item {
      /* aspect-ratio: 1 / 1; */
      overflow: hidden;
      display: flex;
      flex-direction: column;
      text-decoration: none;
      gap: var(--gap);
      transition: var(--transition);
      &:hover {
        opacity: 0.9;
      }
      img {
        width: 100%;
        height: 300px;
        object-fit: cover;
        border-radius: var(--gap);

        @media screen and (max-width: 1024px) {
          text-align: center;
        }
      }
    }

    .blog-section__item__content {
      display: flex;
      flex-direction: column;
      /* gap: 0.5rem; */
      .blog-section__item__title {
        color: var(--off-black);
        font-size: 36px;
        font-weight: 800;
        font-family: 'Oswald', sans-serif;
        line-height: 1.2;
        margin-bottom: 1rem;
      }
      .blog-section__item__description {
        color: var(--off-black);
        font-size: 18px;
        font-weight: 400;
      }
    }
  }
}

.blog-section__post {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--off-black);
  line-height: 1.5;
  margin-top: 60px;

  .blog-section__post-title {
    font-size: 2rem;
    color: var(--accent-color);
    display: block;
    font-weight: 600;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    display: inline;
    font-weight: 400;
    font-size: 1.2rem;
  }
  a {
    color: var(--off-black);
    text-decoration: none;
    transition: var(--transition);
    &:hover {
      color: var(--accent-color);
    }
  }
  img,
  video,
  iframe {
    max-width: 100%;
    display: block;
    border-radius: var(--border-radius);
    object-fit: cover;
  }
}

.contact-section {
  margin-top: var(--section-spacing);
  position: relative;
  border-radius: var(--border-radius);
  background-image: url('./img/contact-bg.png');
  height: auto;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  @media (min-width: 1200px) {
    height: 552px;
  }
  .contact__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: var(--padding);

    @media screen and (max-width: 1024px) {
      gap: 1rem;
      text-align: center;
      align-items: center;
      justify-content: center;
    }
  }
  .contact__title {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Oswald', sans-serif;
    color: var(--off-white);

    line-height: 1;

    @media screen and (min-width: 769px) {
      font-size: 200px;
      letter-spacing: normal;
      letter-spacing: -5px;
    }
    @media screen and (min-width: 1200px) {
      font-size: 248px;
    }
  }
  .contact__content-text {
    color: var(--off-white);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 50%;
    gap: var(--gap);

    @media screen and (max-width: 1024px) {
      width: 100%;
      max-width: fit-content;
      text-align: center;
      align-items: center;
    }
  }
}

/* FOOTER */
.footer {
  background-color: #232323;
  /* height: 300px; */
  padding: var(--gap) 0;
  margin-top: var(--section-spacing);
  color: var(--off-white);

  .footer__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    font-weight: 200;
    max-width: 290px;

    @media screen and (max-width: 1024px) {
      max-width: 100%;
      align-items: center;
    }
  }

  .footer__row {
    background-color: #525252;
    height: 1px;
    width: 100%;
    display: block;
    margin: var(--gap) 0;
  }

  .center-content {
    display: flex;
    gap: 60px;
    justify-content: flex-start;
    align-items: flex-start;

    @media screen and (max-width: 1024px) {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 2rem;
    }

    &.last {
      justify-content: space-between;
    }
  }
  .footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    li {
      font-size: 14px;
      font-weight: 300;
      color: var(--off-white);
      font-weight: 500;
      @media screen and (max-width: 1024px) {
        text-align: center;
      }
      a {
        font-size: 14px;
        font-weight: 200;
        color: var(--off-white);
        text-decoration: none;
        @media screen and (max-width: 1024px) {
          text-align: center;
        }
        &:hover {
          text-decoration: underline;
        }
      }
    }
  }

  .footer__icons {
    display: flex;
    gap: 1rem;
    align-items: center;
    a {
      transition: var(--transition);
      text-decoration: none;
      &:hover {
        transform: translateY(-4px);
      }
    }
  }
  .footer__copy {
    font-size: 12px;
    font-weight: 200;
    color: var(--off-white);
    a {
      color: var(--off-white);
      text-decoration: none;
    }
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  /* overflow: hidden; */
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);

  &.visible {
    display: flex;
    overflow: hidden;
  }
}

.modal__content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: var(--gap);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  animation: zoomIn 0.3s ease;
}

.modal__close {
  position: absolute;
  top: 25px;
  right: 40px;
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}

.modal__close:hover {
  opacity: 0.7;
}

@keyframes zoomIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* helpers */
.btn {
  padding: 1.5rem 2rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  text-align: center;
  display: inline-block;
  height: var(--padding);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  &.btn-lg {
    padding: 2rem 3rem;
    font-size: 1.4rem;
    border-radius: 48px;
  }

  &.btn-black {
    background-color: var(--off-black);
    color: var(--off-white) !important;
    &:hover {
      background-color: var(--accent-color);
      color: var(--accent-color);
    }
  }
  &.btn-white {
    background-color: var(--off-white);
    color: var(--off-black);
    &:hover {
      background-color: var(--accent-color);
      color: var(--off-white);
    }
  }
  &.btn-nude {
    background-color: var(--off-white);
    color: var(--off-black);
    border: solid 1px var(--off-black);
    &:hover {
      background-color: var(--off-black);
      color: var(--off-white);
    }
  }
  &.btn-accent {
    background-color: var(--accent-color);
    color: var(--off-white);
    &:hover {
      background-color: var(--off-white);
      color: var(--accent-color);
    }
  }
}

.text-accent {
  color: var(--accent-color);
}
.text-off-white {
  color: var(--off-white);
}
.text-off-black {
  color: var(--off-black);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  .section-header__title {
    color: var(--off-black);
    font-size: 52px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    line-height: 1.2;
  }
}

.section-text {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--off-black);
  line-height: 1.5;

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    display: inline;
    font-weight: 400;
    color: var(--off-black);
  }
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  animation: pulse 2s infinite;
  text-decoration: none;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}
