/**
 * Main.css
 */

/**
 * Colors
 */

:root {
  --color-primary: hsl(231.95deg 88.17% 66.86%);
  --color-secondary: hsl(198.51deg 92.16% 60%);
  --color-accent-dark: hsl(230.68deg 54.5% 37.06%);
  --color-background-light: hsl(216deg 50% 96.08%);
  --color-foreground-light: hsl(0deg 4.88% 16.08%);
  --color-background-dark: hsl(216deg 50% 96.08%);
  --color-foreground-dark: hsl(240deg 49.47% 18.63%);
}

/**
 * Netlify Portfolio (https://alffonti-portfolio.netlify.app/)
 */

.et_pb_button:hover {
  transform: scale(1.1);
}

/* My Porfolio section */

.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.5rem;
}

.portfolio-gallery .et_pb_image {
  background: black;
  overflow: hidden;
  margin: 0.25em 0;
  border-radius: 5px;
  margin-bottom: 0 !important;
}

.portfolio-gallery img {
  transition: transform 750ms cubic-bezier(0.5, 0, 0.5, 1), opacity 250ms linear;

  object-fit: cover;
  object-position: 50% 0%;
}

.portfolio-gallery .et_pb_image:focus {
  position: relative;
  z-index: 2 !important;
}

.portfolio-gallery .et_pb_image {
  margin: 0.15em;
}

.portfolio-gallery .et_pb_image:hover img,
.portfolio-gallery .et_pb_image:focus img {
  transform: scale(1.2);
  opacity: 0.5;
}

@media (500px < width < 980px) {
  .intro .et_pb_row {
    display: flex !important;
    align-items: center;
    gap: 2rem;
    max-width: 400px !important;
    margin-inline: auto !important;
  }
}

@media (width < 500px) {
  .intro .et_pb_row {
    display: flex !important;
    flex-direction: column-reverse;
    gap: 2rem;
    max-width: 250px !important;
  }
}

@media (700px < width < 980px) {
  .who-i-am .et_pb_row {
    display: grid !important;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-inline: auto !important;

    .et_pb_column:nth(2),
    .et_pb_image,
    img {
      max-width: 250px !important;
    }
  }
}

@media (width < 700px) {
  .who-i-am img {
    display: none !important;
  }
}

/**
 * Menu
 */

/* Block scrolling when menu is opened */
.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* NOTE 2: Fix menu in tablet screens */

.et_pb_menu__logo {
  position: relative;
  margin-right: 8px !important;
}

.et_pb_menu .et_pb_menu__wrap {
  justify-content: flex-end;
}

.et_pb_menu .et_pb_menu__menu,
.et_pb_menu .et_pb_menu__menu > nav,
.et_pb_menu .et_pb_menu__menu > nav > ul {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.et-menu a {
  padding: 1rem 0.75rem !important;

  &:hover {
    opacity: 1;
  }
}

.menu-item.cta {
  background-color: #6074f5;
  border-radius: 8px;
  font-weight: 700;
  padding-inline: 0.5rem !important;
  margin-left: 1.5rem !important;
  display: inline-block;

  &:hover {
    background-color: #4960f3;
  }
}

/* Prevent scrolling when mobile menu is open using touch-action */
.mobile_nav.opened {
  touch-action: none;
}

/* ========================
   Header
======================== */

#page-container #et-boc .et_pb_section_0_tb_header {
  .sub-menu {
    --submenu-width: 330px;
    --anchor-width: 280px;
    border: none;
    background: var(--primary-color) !important;
    top: 4rem;
    width: var(--submenu-width);

    a {
      font-size: 0.9rem;
      text-shadow: none;
      color: white !important;
      width: var(--anchor-width);
    }
  }

  @media (max-width: 980px) {
    --menu-height: 92px;

    .et_mobile_menu {
      background: #0d0b47 !important;
      position: fixed !important;
      top: 92px !important;
      left: 50% !important;
      width: 100vw;
      height: calc(100dvh - var(--menu-height));
      transform: translatex(-50%);
      z-index: 999;
      padding-block: 6rem !important;

      a {
        color: #fff !important;
      }
    }

    .menu-item.cta {
      position: absolute;
      bottom: 2rem;
      left: 50%;
      transform: translatex(-50%);
      width: 50vw;
      margin-left: 0 !important;
      text-align: center;
    }

    .et_mobile_nav_menu .mobile_menu_bar {
      position: absolute;
      top: 0.25rem;
      right: unset;
      right: 0;
      z-index: 1000 !important;

      &:before {
        font-size: 2.75rem;
        color: white;
        background: var(--primary-color) !important;
        border-radius: 4px;
      }
    }

    /*change Divi hamburger menu to X*/
    .mobile_nav.opened .mobile_menu_bar:before {
      content: "\4d" !important;
    }

    /*rotate the Divi Menu icon on click*/
    .mobile_menu_bar:before {
      transition: all 0.4s ease;
      transform: rotate(0deg);
      display: block;
    }

    /*rotate the Divi Menu icon on click*/
    .mobile_nav.opened .mobile_menu_bar:before {
      transition: all 0.4s ease;
      transform: rotate(90deg);
      display: block;
    }
  }
}

/**
 * Footer
 */

footer {
  ul {
    padding-left: 0 !important;
  }
}

.footer-trust-icons {
  padding: 0 !important;
  margin-inline: auto !important;
  width: max-content !important;

  .et_pb_column {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .et_pb_image {
    margin-bottom: 0 !important;
  }
  img {
    height: 50px;
  }
}

/**
 * Hero
 */

.hero {
  padding-top: calc(4% + 112px);

  @media (width< 768px) {
    & {
      padding-top: calc(50px + 92px);
    }
  }
}

.hero h1 {
  text-wrap: balance;
}

.hero h1 span {
  background-image: linear-gradient(90deg, #a855f7, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.website-examples {
  position: relative;
  height: calc(26.25vw + 8rem) !important;
  overflow: hidden;

  img {
    border-radius: 16px;
  }

  .et_pb_image {
    position: absolute;
  }

  .dante-concrete {
    width: 55vw;
    left: 50%;
    transform: translateX(-50%);
  }

  .divine-acupuncture {
    width: 15vw;
    left: calc(50% - 27.5vw - 15vw - 3vw);
    top: 1vw;
  }

  .arlington-prime-pediatrics {
    width: 15vw;
    left: calc(50% - 27.5vw - 7.5vw);
    top: 8vw;
  }

  .bella-moto {
    width: 13vw;
    left: calc(50% + 27.5vw + 3vw);
  }

  .spanish-steps {
    width: 15vw;
    left: calc(50% + 27.5vw - 5vw);
    top: 12vw;
  }

  @media (799px < width < 981px) {
    & {
      height: calc(26.25vw + 5rem) !important;
    }
  }

  @media (width < 800px) {
    & {
      height: calc(38vw + 3rem) !important;
      overflow: hidden;
    }

    img {
      border-radius: 8px;
    }

    .bella-moto,
    .divine-acupuncture {
      display: none;
    }

    .dante-concrete {
      width: 75vw;
    }

    .arlington-prime-pediatrics {
      width: 25vw;
      left: calc(50% - 37.5vw - 11vw);
      top: 10vw;
    }

    .spanish-steps {
      width: 25vw;
      left: calc(50% + 37.5vw - 14vw);
      top: 8vw;
    }
  }
}

/**
 * Utility
 */

.flex {
  display: flex;
  @media (width < 981px) {
    & {
      display: block;
    }
  }
}

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

.place-content-center {
  align-content: center;
  justify-content: center;
}


@media (width < 981px) {
  .flex-col-reverse {
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
  }
}

.grid {
  display: grid;

  @media (width < 981px) {
    & {
      display: block;
    }
  }
}

.grid-cols-2 {
  grid-template-columns: 1fr 1fr;
}

.grid-cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.gap-1 {
  gap: 1rem;
}

.gap-2 {
  gap: 2rem;
}

.gap-4 {
  gap: 4rem;
}

/**
 * Testimonials
 */

.et_pb_testimonial {
  display: flex;
  flex-direction: column-reverse;
  grid-template-columns: 1fr;
  background-image: url("data:image/svg+xml,%3Csvg width='128' height='24' viewBox='0 0 128 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='24' height='24' rx='4' fill='%2300B67A'%3E%3C/rect%3E%3Crect x='26' width='24' height='24' rx='4' fill='%2300B67A'%3E%3C/rect%3E%3Crect x='51.998' width='24' height='24' rx='4' fill='%2300B67A'%3E%3C/rect%3E%3Crect x='78' width='24' height='24' rx='4' fill='%2300B67A'%3E%3C/rect%3E%3Crect x='104' width='24' height='24' rx='4' fill='%2300B67A'%3E%3C/rect%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M13.975 10.1H20.4l-5.175 3.75-3.2 2.3-5.2 3.75L8.8 13.85 3.6 10.1h6.425L12 4.05l1.975 6.05Zm1.675 5.15-3.65.924 5.175 3.776-1.525-4.7ZM39.977 10.1h6.425l-5.175 3.75-3.2 2.3-5.2 3.75 1.975-6.05-5.2-3.75h6.425l1.975-6.05 1.975 6.05Zm1.675 5.15-3.65.925 5.175 3.775-1.525-4.7ZM65.975 10.1H72.4l-5.175 3.75-3.2 2.3-5.2 3.75 1.975-6.05-5.2-3.75h6.425L64 4.05l1.975 6.05Zm1.675 5.15-3.65.924 5.175 3.776-1.525-4.7ZM91.975 10.1H98.4l-5.175 3.75-3.2 2.3-5.2 3.75 1.975-6.05-5.2-3.75h6.425L90 4.05l1.975 6.05Zm1.675 5.15-3.65.924 5.175 3.776-1.525-4.7ZM117.975 10.1h6.425l-5.175 3.75-3.2 2.3-5.2 3.75 1.975-6.05-5.2-3.75h6.425L116 4.05l1.975 6.05Zm1.675 5.15-3.65.925 5.175 3.775-1.525-4.7Z' fill='%23fff'%3E%3C/path%3E%3C/svg%3E");
  background-size: 7rem;
  background-position: 2rem 2rem;
  user-select: none;

  .et_pb_testimonial_portrait {
    position: absolute;
    width: 3.5rem !important;
    height: 3.5rem !important;

    @media (width < 768px) {
      & {
        bottom: 0.5rem;
      }
    }
  }

  .et_pb_testimonial_description {
    margin-left: 0px !important;
    margin-top: 3rem;
    pointer-events: none;
  }

  .et_pb_testimonial_author {
    margin-left: 4.25rem;
    margin-top: 1rem;
  }

  .et_pb_testimonial_meta {
    margin-left: 4.25rem;
    font-size: 0.85em;

    @media (width < 500px) {
      & {
        font-size: 0.65em;
      }
    }
  }
}

/**
 * Carousels (sliders, swipers, etc)
 */

#et-boc .et_pb_row:has(.carousel) {
  width: 100% !important;
  max-width: 100% !important;
  padding-inline: 0 !important;
}

.carousel {
  display: flex !important;
  flex-wrap: unset !important;
  gap: 2rem;
  overflow: auto;
  scrollbar-width: none;
  padding: 5rem 6rem; /* hide box shadow */
  margin-block: -7rem -5rem !important;

  &::-webkit-scrollbar {
    display: none;
  }

  & > * {
    flex-basis: min(30rem, 100%);
    min-width: min(30rem, 100%);
    flex-shrink: 0;
    margin-bottom: 0 !important;
  }
  @media (width < 981px) {
    & {
      padding: 5rem 1rem; /* hide box shadow */
    }
  }
}

/**
 * Forms
 */

.et_pb_contact_form_container {
  .et_pb_contact_main_title {
    display: none;
  }

  .et_pb_contact_field {
    margin-bottom: 1.5rem;

    h2 {
      margin: 2rem 0 1rem;
      font-size: 1.25rem;
    }

    &.et_pb_contact_field_0 h2 {
      margin-top: 0;
    }
  }

  button[type="submit"] {
    width: 100%;
    margin-left: 3%;
  }

  textarea[name="et_pb_contact_website_goals_0"] {
    margin-top: 1.5rem;
  }

  &:has(.et_pb_success_message) {
    font-size: 0.9rem;
    background: white;
    padding: 0.5rem 1rem !important;
    text-align: center;
    border-radius: 4px;
    text-wrap: balance;

    p {
      padding-bottom: 0;

      & + p {
        padding-top: 0.5em;
      }
    }
  }
}

/**
 * Subscribe to Newsletter Form
 */

.subscribe-newsletter-form {
  .et_pb_contact_field {
    margin-bottom: 0rem;
    height: 40px;
    width: 60% !important;
    input {
      background: white !important;
      border: 1px solid black;
      border-radius: 8px;
      height: 40px;
    }
  }

  .et_contact_bottom_container {
    width: 40%;
    height: 40px;
    font-size: 0.1rem !important;
  }

  .et_pb_button {
    font-size: 16px !important;
  }
}

/**
 * Satisfied client
 */

.satisfied-client-website {
  --offset-X: calc(-50% - 150px);
  transform: translate(var(--offset-X), -50%) !important;
  @media (width < 500px) {
    & {
      left: 0 !important;
      --offset-X: 0;
    }
  }
}

/**
 * Single project page
 */

.breadcrumbs {
  margin: 8rem auto 0;
  max-width: calc(100vw - 2rem * 2);

  @media (width > 980px) {
    & {
      margin: 10rem auto 0;
      max-width: calc(1120px - 2rem * 2);
    }
  }
}

.single-project-wrapper {
  margin-top: 0rem;
  padding: 2rem;
  display: flex;
  flex-direction: column-reverse;
  gap: 2rem;
  padding-bottom: 4rem;

  @media (width > 980px) {
    & {
      max-width: 1120px;
      margin-top: 2rem;
      margin-inline: auto;
      flex-direction: row-reverse;
      gap: 3rem;
    }
  }
}

.project-column {
  min-width: min(400px, 100%);
}

.project-header h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.project-contact-button {
  color: #fff;
  padding: 0.75rem 1.5rem;
  display: inline-block;
  margin-top: 1rem !important;
  text-decoration: none;
  transition: background 0.3s;
  background-color: #6074f5;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px !important;
}

.project-contact-button:hover {
  background: #4960f3;
}

.project-gallery {
  height: auto;
  position: relative;
  width: 100%;
}

.project-gallery img {
  border-radius: 8px;
}
.project-gallery im {
  box-shadow: 0.75rem 2.5rem 2.5rem 2.5rem rgba(2, 5, 24, 0.08),
    -0.75rem -2.5rem 2.5rem 2.5rem rgba(2, 5, 24, 0.08);
}

.project-gallery img:nth-child(1) {
  margin-bottom: 18%;
  max-width: 61%;
  position: relative;
  box-shadow: 0.75rem 2.5rem 2.5rem 2.5rem rgba(2, 5, 24, 0.08),
    -0.75rem -2.5rem 2.5rem 2.5rem rgba(2, 5, 24, 0.08);
}

.project-gallery img:nth-child(2) {
  max-width: 47%;
  right: 0;
  top: 8%;
  position: absolute;
  box-shadow: 0.75rem 2.5rem 2.5rem 2.5rem rgba(2, 5, 24, 0.04),
    -0.75rem -2.5rem 2.5rem 2.5rem rgba(2, 5, 24, 0.04);
}

.project-gallery img:nth-child(3) {
  bottom: 0;
  left: 25%;
  max-width: 50%;
  position: absolute;
  box-shadow: 0.75rem 2.5rem 2.5rem 2.5rem rgba(2, 5, 24, 0.08),
    -0.75rem -2.5rem 2.5rem 2.5rem rgba(2, 5, 24, 0.04);
}

.project-meta {
  display: block;
  margin-bottom: 16px !important;

  a {
    font-size: 16px;
    font-weight: 400;
    margin-right: 4px;
    transition: all 0.3s ease;
  }

  p,
  a,
  span,
  li {
    color: #030712 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
  }

  strong + :is(span, a, ul) {
    display: block;
    margin-top: 0.75rem;
    margin-left: 1.5rem;
    text-transform: capitalize;
  }

  a {
    text-transform: lowercase !important;
  }
}

.challenges li:before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23dc3545' class='bi bi-exclamation-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zm6 4c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995A.905.905 0 0 1 8 4m.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2'/%3E%3C/svg%3E");
  padding-right: 0.5rem;
  position: relative;
  top: 0.125rem;
}

.features li:before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236074f5' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0'/%3E%3C/svg%3E");
  padding-right: 0.5rem;
  position: relative;
  top: 0.125rem;
}

.results li:before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23198754' class='bi bi-check-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zm10.03 4.97a.75.75 0 0 1 .011 1.05l-3.992 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.75.75 0 0 1 1.08-.022z'/%3E%3C/svg%3E");
  padding-right: 0.5rem;
  position: relative;
  top: 0.125rem;
}

/**
 * Project grid
 */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3rem 2rem;
  padding: 2rem 0;

  .project-card {
    position: relative;
    background: #fff;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    overflow: visible;
  }

  .project-title {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
  }

  .image-stack {
    align-items: center;
    justify-content: center;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 100%;
  }

  .image-stack img {
    height: 240px;
    width: 220px;
    z-index: 3;
    box-shadow: 0.75rem 2.5rem 2.5rem 2.5rem rgba(2, 5, 24, 0.08);
    margin-top: 0;
    border-radius: 10px;
    align-self: center;
    display: block;
    max-width: 100%;
    opacity: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: visible;

    &:nth-child(1) {
      overflow: hidden;
      object-fit: cover;
      object-position: 0 0;
    }

    &:nth-child(2),
    &:nth-child(3) {
      height: 200px;
      opacity: 0.8;
      position: absolute;
      top: 12px;
      width: 180px;
      z-index: 2;
    }

    &:nth-child(2) {
      left: 25px;
    }

    &:nth-child(3) {
      right: 25px;
    }
  }

  .image-stack:hover {
    img:nth-child(1) {
      width: 160px;
      overflow: hidden;
      object-fit: cover;
    }

    img:nth-child(2),
    img:nth-child(3) {
      height: 220px;
      opacity: 1;
      width: 160px;
    }

    img:nth-child(2) {
      left: 0;
      transform: rotate(-5deg);
    }

    img:nth-child(3) {
      right: 0;
      transform: rotate(5deg);
    }
  }
}

/**
 * Two Centered Buttons
 */

#page-container .two-centered-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  place-content: center;
  margin-top: 2rem;

  .et_pb_button_module_wrapper {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  @media (width < 500px) {
    & {
      margin-top: 0.5rem;
    }
    .et_pb_button {
      min-width: 10rem;
      padding-top: 0.5rem !important;
      padding-right: 0.5rem !important;
      padding-bottom: 0.5rem !important;
      padding-left: 0.5rem !important;
    }
  }
}

/**
 * Pricing table
 */

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-family: sans-serif;
  background: #fff;
  box-shadow: 0.75rem 2.5rem 2.5rem 2.5rem rgba(2, 5, 24, 0.08);

  th,
  td {
    min-width: 18rem;
  }

  thead th {
    background-color: #f9fafb;
    padding: 3rem 1rem 1.5rem;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 0.0625rem solid #ecedee;
    text-align: center;
    color: #6074f5;

    &:nth-child(1) {
      background-color: #f0f3ff !important;
    }

    &:nth-child(3) {
      position: relative;
    }

    &:nth-child(3):before {
      content: "Popular";
      background-color: #0d0b47;
      color: #fff;
      position: absolute;
      top: 0;
      left: 50%;
      transform: translate(-50%, -50%);
      padding: 0.25rem 0.75rem;
      border-radius: 0.5rem;
    }
  }

  .price {
    display: block;
    font-weight: bold;
    color: black;
    margin-top: 1rem;
    font-size: 1.5rem;
  }

  td {
    padding: 1.5rem 1rem !important;
    text-align: center;
    line-height: 1.5rem;
    border-bottom: 0.0625rem solid #ecedee;
    font-size: 17px;
    color: #030712;
  }

  td:first-child {
    font-weight: 700;
    text-align: left;
    background-color: #f0f3ff;
    padding-left: 3rem !important;
    color: black;
  }

  .et_pb_button {
    margin-top: 0rem;
    display: inline-block;
  }

  /* Mobile styling for stacked pricing cards */
  @media (max-width: 768px) {
    .et_pb_text_inner:has(&) {
      width: 100% !important;
      overflow-x: scroll;
      scrollbar-width: none;
      padding-top: 1.5rem;
    }

    th,
    td {
      min-width: 12rem;
    }

    tr {
      position: relative;
    }

    thead th:first-of-type,
    td:first-child {
      position: -webkit-sticky;
      position: sticky;
    }
  }
}

/**
 * Hide Team Members by default
 */

#team-members {
	display: none;
}
