@tailwind base;
@tailwind components;
@tailwind utilities;
@import 'custom.css';



* {
  font-family: 'MaisonNeue-Book';
}

html {
  scroll-behavior: smooth;
}

.arrow-down:hover img {
  @apply invert;
}

  .nero-offers-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
  }

  @media(max-width: 768px) {
    .nero-offers-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
  }

  .sticky-container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    align-items: flex-start;
  }

  @media(max-width: 1280px) {
    .sticky-container {
      flex-direction: column;
    }
  }

  .sticky-left {
    position: sticky;
    top: 0;
    height: fit-content;
  }

  @media(min-width: 1024px) {
    .sticky-left {
      height: fit-content;
      position: relative;
    }
  }

  @media(max-width: 1023px) {
    .sticky-left {
      height: fit-content;
      position: relative;
    }
  }

    @media(max-width: 767px) {
    .sticky-left {
      position: relative;
      height: fit-content;
    }
  }

  @media(min-width: 1280px) {
    .sticky-left {
      position: sticky;
      top: 0;
      height: fit-content;
      width: 500px;
    }
  }

    @media(min-width: 1600px) {
    .sticky-left {
      width: 650px;
    }
  }

  .sticky-right {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 350px;
  }

  @media(max-width: 1280px) {
    .sticky-right {
      height: 100%;
      width: 100%;
    }
  }

  @media(max-width: 768px) {
    .sticky-right {
      position: relative;
      width: 100%;
    }
  }

  .scroll-mid {
    flex: 1 0 0;
  }

  .contact-input {
    width: 100%;
    padding: 0.5rem 0rem;
    margin: 0.5rem 0;
    border-bottom: 1px solid #E3DED7;
  }

  textarea.auto-expand {
    overflow: hidden;
    resize: none; /* Prevent manual resizing */
    min-height: 1.5em; /* Adjust as needed */
    line-height: 1.5em; /* Adjust to match min-height */
  }

  .wpcf7-list-item {
    margin-left: 0;
  }

  .contact-submit {
    @apply bg-[#5E513F] flex justify-center items-center p-6 min-h-16 min-w-56 text-white mt-8 cursor-pointer hover:bg-black;
  }

  @media(max-width: 768px) {
    .contact-submit {
      @apply w-full;
    }
  }

  .wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
    border: none !important;
    margin: 1rem 0 !important;
    padding: 0 !important;
  }

  .wpcf7 form.sent .wpcf7-response-output {
    border: none !important;
    margin: 0;
    @apply absolute p-0 top-0 w-full h-full bg-white text-[24px] leading-[32px] sm:p-4;
}

/* Hide the default checkbox */
input[type="checkbox"].custom-checkbox {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  position: relative;
}

/* Style for checked state */
input[type="checkbox"].custom-checkbox:checked {
  background-color: #5E513F;
  border: transparent;
}

input[type="checkbox"].custom-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.fill-brown:hover img{
  filter: invert(30%) sepia(28%) saturate(419%) hue-rotate(355deg) brightness(94%) contrast(88%);
}

/* Add this CSS to your global styles */
.underline-animation::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px; /* Adjust as needed */
  width: 100%;
  height: 2px; /* Adjust as needed */
  background-color: currentColor; /* Use the same color as the text */
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-in-out;
}

.underline-animation:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
