/*
Theme Name: New Yorker
Theme URI: https://www.gtbuilding.com.br/
Author: GT Building
Description: Tema clássico WordPress baseado 1:1 na landing page New Yorker.
Version: 1.0.0
Text Domain: new-yorker
*/

@font-face {
  font-family: "TT Fors";
  src: url("fonts/TTForsVariable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

cta-button {
  display: block;
}

cta-button > a {
  width: 100%;
  box-sizing: border-box;
}

cta-button > a > span {
  white-space: nowrap;
}

cta-button > a > img {
  flex-shrink: 0;
}

/* CONTACT FORM 7 */

.new-yorker-form {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 10px;
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0 20px 20px 0;
}
.new-yorker-form-title {
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  color: #000;
  font-family: "TT Fors", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
}

.new-yorker-form-title br {
  display: block;
}

.new-yorker-fields {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 16px;
}

.new-yorker-field {
  display: flex;
  width: 100%;
  height: 54px;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  padding: 17px 20px;
}

.new-yorker-field .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.new-yorker-field input {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0;
  font-family: "TT Fors", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #000;
}

.new-yorker-field input::placeholder {
  color: #000;
  opacity: 1;
}

.new-yorker-field:has(#phone) {
  padding-left: 20px;
  padding-right: 20px;
}

.new-yorker-field:has(#phone) .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.new-yorker-field .iti,
.new-yorker-field .iti--allow-dropdown {
  width: 100% !important;
  height: 100%;
}

.new-yorker-field .iti input[type="tel"] {
  width: 100%;
  height: 100%;
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.new-yorker-field .iti__selected-dial-code {
  font-family: "TT Fors", sans-serif;
  font-size: 16px;
  line-height: 20px;
}

.new-yorker-field .iti__selected-flag {
  padding-left: 0;
  padding-right: 8px;
}

.new-yorker-field .iti__country-name,
.new-yorker-field .iti__dial-code {
  font-family: "TT Fors", sans-serif;
  font-size: 16px;
}

.new-yorker-field .iti__country-list {
  width: 260px;
  max-width: calc(100vw - 40px);
  box-sizing: border-box;
}

.new-yorker-privacy {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  font-family: "TT Fors", sans-serif;
  font-size: 10px;
  line-height: 16px;
  color: #000;
}

.new-yorker-privacy br {
  display: none !important;
}

.new-yorker-submit {
  display: flex;
  width: 100%;
  height: 68px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  border: 0;
  border-radius: 999px;
  background: #8e793d;
  padding: 0 20px;
  font-family: "TT Fors", sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 0.2s ease;
}

.new-yorker-submit:hover {
  background: #b09546;
}

.new-yorker-submit:focus {
  outline: none;
}

.new-yorker-submit:focus-visible {
  outline: 2px solid #8e793d;
  outline-offset: 3px;
}

.new-yorker-submit > span:first-child {
  display: block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  flex: 0 0 auto;
  text-align: center;
}

.new-yorker-submit-arrow {
  display: flex;
  width: 13px;
  height: 13px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  flex: 0 0 13px;
}

.new-yorker-submit-arrow img {
  display: block;
  width: 13px;
  height: 13px;
  max-width: none;
  margin: 0;
  padding: 0;
  object-fit: contain;
}

@media (max-width: 767px) {
  .new-yorker-submit {
    height: 68px;
    padding: 0 16px;
    font-size: 11px;
    line-height: 14px;
    letter-spacing: 2.2px;
    gap: 10px;
  }
}

.new-yorker-form .wpcf7-not-valid-tip {
  margin-top: 4px;
  font-family: "TT Fors", sans-serif;
  font-size: 10px;
  line-height: 14px;
}

.new-yorker-form .wpcf7-response-output {
  margin: 10px 0 0;
  padding: 10px;
  border-radius: 10px;
  font-family: "TT Fors", sans-serif;
  font-size: 11px;
  line-height: 14px;
}

@media (max-width: 1023px) {
  .new-yorker-form {
    padding: 32px;
  }
}

@media (max-width: 767px) {
  .new-yorker-form {
    padding: 24px;
  }
}

/* WHATSAPP POPUP */

.new-yorker-whatsapp-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.new-yorker-whatsapp-popup.is-open {
  display: flex;
}

.new-yorker-whatsapp-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.new-yorker-whatsapp-modal {
  position: relative;
  z-index: 1;
  width: 382px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 10px;
  background: #1c1c2a;
}

.new-yorker-whatsapp-header {
  width: 100%;
  height: 85px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 30px;
  background: #153448;
}

.new-yorker-whatsapp-brand {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.new-yorker-whatsapp-logo {
  display: block;
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
}

.new-yorker-whatsapp-brand-info {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.new-yorker-whatsapp-brand-name {
  display: block;
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: "TT Fors", sans-serif;
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  font-style: normal;
  white-space: nowrap;
}

.new-yorker-whatsapp-status {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: "TT Fors", sans-serif;
  font-size: 10px;
  line-height: 16px;
  font-weight: 500;
  font-style: normal;
  white-space: nowrap;
}

.new-yorker-whatsapp-status-dot {
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  border-radius: 50%;
  background: #49d120;
}

.new-yorker-whatsapp-close {
  position: relative;
  display: block;
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  cursor: pointer;
}

.new-yorker-whatsapp-close span {
  position: absolute;
  left: 3px;
  top: 11.5px;
  width: 18px;
  height: 1.5px;
  margin: 0;
  padding: 0;
  background: #fff;
}

.new-yorker-whatsapp-close span:first-child {
  transform: rotate(45deg);
}

.new-yorker-whatsapp-close span:last-child {
  transform: rotate(-45deg);
}

.new-yorker-whatsapp-body {
  width: 100%;
  box-sizing: border-box;
  padding: 30px;
  background: #1c1c2a;
}

.new-yorker-whatsapp-body form.wpcf7-form {
  width: 100% !important;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.new-yorker-whatsapp-body form.wpcf7-form p {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
  margin-inline-start: 0 !important;
  margin-inline-end: 0 !important;
}

.new-yorker-whatsapp-form {
  display: flex !important;
  width: 100%;
  flex-direction: column;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
}

.new-yorker-whatsapp-fields {
  display: flex !important;
  width: 100%;
  flex-direction: column;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
}

.new-yorker-whatsapp-title {
  width: 100%;
  height: 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff;
  font-family: "TT Fors", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  font-style: normal;
  white-space: nowrap;
}

.new-yorker-whatsapp-field {
  width: 100%;
  height: 54px;
  flex: 0 0 54px;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0 !important;
}

.new-yorker-whatsapp-field .wpcf7-form-control-wrap {
  display: block !important;
  width: 100% !important;
  height: 54px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.new-yorker-whatsapp-field input {
  display: block !important;
  width: 100% !important;
  height: 54px !important;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 17px 16px 17px 20px !important;
  border: 0 !important;
  border-radius: 8px !important;
  outline: none;
  background: #0f5247 !important;
  color: #fff !important;
  font-family: "TT Fors", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  font-style: normal;
}

.new-yorker-whatsapp-field input::placeholder {
  color: #fff !important;
  opacity: 1;
}

.new-yorker-whatsapp-field .iti {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 54px !important;
}

.new-yorker-whatsapp-field .iti input.iti__tel-input,
.new-yorker-whatsapp-field .iti input[type="tel"] {
  display: block !important;
  width: 100% !important;
  height: 54px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 17px 16px 17px 105px !important;
  border: 0 !important;
  border-radius: 8px !important;
  outline: none !important;
  background: #0f5247 !important;
  color: #fff !important;
  font-family: "TT Fors", sans-serif !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 500 !important;
}

.new-yorker-whatsapp-field .iti input.iti__tel-input::placeholder,
.new-yorker-whatsapp-field .iti input[type="tel"]::placeholder {
  color: #fff !important;
  opacity: 1 !important;
}

.new-yorker-whatsapp-field .iti__selected-country {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: auto !important;
  height: 54px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 0 0 20px !important;
  background: transparent !important;
}

.new-yorker-whatsapp-field .iti__selected-country .iti__flag {
  flex-shrink: 0 !important;
}

.new-yorker-whatsapp-field .iti__selected-dial-code {
  margin-left: 5px !important;
  color: #fff !important;
  font-family: "TT Fors", sans-serif !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 500 !important;
}

.new-yorker-whatsapp-field .iti__selected-country::after {
  content: "";
  display: block;
  width: 1px;
  height: 13px;
  margin-left: 13px;
  background: rgba(255, 255, 255, 0.35);
}

.new-yorker-whatsapp-privacy {
  width: 100% !important;

  flex: 0 0 16px !important;

  height: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;

  box-sizing: border-box !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #fff !important;

  font-family: "TT Fors", sans-serif !important;
  font-size: 10px !important;
  line-height: 16px !important;
  font-weight: 500 !important;

  text-align: right !important;
  white-space: nowrap !important;

  display: block !important;
}

.new-yorker-whatsapp-privacy br {
  display: none !important;
}
.new-yorker-whatsapp-submit {
  width: auto !important;
  min-width: 197px !important;
  height: 68px !important;
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px;
  margin: 0 !important;
  padding: 24px 32px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #49d120 !important;
  color: #fff !important;
  cursor: pointer;
  font-family: "TT Fors", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;

  flex: 0 0 auto !important;
}

.new-yorker-whatsapp-submit:hover {
  filter: none;
}

.new-yorker-whatsapp-submit:focus-visible,
.new-yorker-whatsapp-close:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: 3px;
}

.new-yorker-whatsapp-body form.wpcf7-form p:has(.new-yorker-whatsapp-submit) {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.new-yorker-whatsapp-icon {
  display: block;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 0;
  padding: 0;
  background-image: url("assets/vectors/whatsapp_logo_footer.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.new-yorker-whatsapp-popup .wpcf7-spinner {
  display: none !important;
}

.new-yorker-whatsapp-popup .wpcf7-response-output {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #fff;
  font-family: "TT Fors", sans-serif;
  font-size: 10px;
  line-height: 16px;
  text-align: right;
}

body.whatsapp-popup-open {
  overflow: hidden;
}

@media (max-width: 414px) {
  .new-yorker-whatsapp-popup {
    padding: 16px;
  }

  .new-yorker-whatsapp-modal {
    width: 382px;
    max-width: calc(100vw - 32px);
    height: auto;
  }

  .new-yorker-whatsapp-header {
    padding-left: 20px;
    padding-right: 20px;
  }

  .new-yorker-whatsapp-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .new-yorker-whatsapp-title,
  .new-yorker-whatsapp-privacy {
    white-space: normal;
  }
}

/* FANCYBOX */

.fancybox-container {
  z-index: 99990 !important;
}

.fancybox-bg {
  background: #000 !important;
}

.fancybox-is-open .fancybox-bg {
  opacity: 0.94 !important;
}

.fancybox-stage {
  overflow: hidden !important;
}

.fancybox-slide--image {
  padding: 70px 80px 120px !important;
}

.fancybox-slide--image .fancybox-image {
  width: auto !important;
  height: auto !important;
  max-width: calc(100vw - 160px) !important;
  max-height: calc(100vh - 190px) !important;
  object-fit: contain !important;
}

.fancybox-caption {
  background: transparent !important;
  color: #fff !important;
  font-family: "TT Fors", sans-serif !important;
  font-size: 10px !important;
  line-height: 16px !important;
  font-weight: 500 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  padding: 0 20px 70px !important;
}

.fancybox-infobar {
  color: #fff !important;
  font-family: "TT Fors", sans-serif !important;
  font-size: 11px !important;
  line-height: 16px !important;
  font-weight: 500 !important;
  letter-spacing: 1.5px !important;
  left: 30px !important;
  top: 25px !important;
}

.fancybox-toolbar {
  right: 25px !important;
  top: 20px !important;
}

.fancybox-toolbar .fancybox-button {
  background: rgba(30, 30, 30, 0.85) !important;
  color: #fff !important;
}

.fancybox-toolbar .fancybox-button:hover {
  background: rgba(50, 50, 50, 0.95) !important;
}

.fancybox-navigation {
  display: block !important;
}

.fancybox-navigation .fancybox-button {
  display: flex !important;
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #f5f2e0 !important;
  color: #000 !important;
  opacity: 1 !important;
}

.fancybox-navigation .fancybox-button:hover {
  background: #fff !important;
}

.fancybox-navigation .fancybox-button--arrow_left {
  left: 20px !important;
}

.fancybox-navigation .fancybox-button--arrow_right {
  right: 20px !important;
}

.fancybox-thumbs {
  background: rgba(0, 0, 0, 0.9) !important;
}

.fancybox-thumbs__list a {
  border-radius: 0 !important;
}

.fancybox-thumbs__list a::before {
  border-color: #fff !important;
}

@media (max-width: 767px) {
  .fancybox-slide--image {
    padding: 55px 8px 125px !important;
  }

  .fancybox-slide--image .fancybox-image {
    width: auto !important;
    height: auto !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 220px) !important;
    object-fit: contain !important;
  }

  .fancybox-infobar {
    left: 15px !important;
    top: 15px !important;
    font-size: 10px !important;
  }

  .fancybox-toolbar {
    right: 10px !important;
    top: 10px !important;
  }

  .fancybox-navigation .fancybox-button {
    width: 42px !important;
    height: 42px !important;
  }

  .fancybox-navigation .fancybox-button--arrow_left {
    left: 8px !important;
  }

  .fancybox-navigation .fancybox-button--arrow_right {
    right: 8px !important;
  }

  .fancybox-caption {
    padding: 0 20px 75px !important;
    font-size: 9px !important;
    line-height: 14px !important;
  }
}

/* SWIPER */

#gallery-swiper,
#location-swiper {
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
}

#gallery-swiper .swiper-wrapper,
#location-swiper .swiper-wrapper {
  width: 100% !important;
}

#gallery-swiper .swiper-slide,
#location-swiper .swiper-slide {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#gallery-swiper .swiper-slide > a,
#location-swiper .swiper-slide > a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

#gallery-swiper .swiper-slide img,
#location-swiper .swiper-slide img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

#gallery-prev,
#gallery-next,
#location-gallery-prev,
#location-gallery-next {
  position: absolute !important;
  top: 50% !important;
  bottom: auto !important;
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateY(-50%) !important;
  z-index: 30 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#gallery-prev,
#location-gallery-prev {
  left: 20px !important;
  right: auto !important;
}

#gallery-next,
#location-gallery-next {
  left: auto !important;
  right: 20px !important;
}

#gallery-prev img,
#gallery-next img,
#location-gallery-prev img,
#location-gallery-next img {
  display: block !important;
  width: 40px !important;
  height: 40px !important;
  flex-shrink: 0 !important;
}

.new-yorker-gallery-arrow {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 30 !important;
}

.new-yorker-gallery-arrow img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* NEW YORKER — ALTURA DAS GALERIAS EM TELAS LARGAS */

@media (min-width: 1600px) {
  #project-gallery {
    height: 700px !important;
  }

  #location-gallery {
    height: 550px !important;
  }
}

@media (min-width: 1920px) {
  #project-gallery {
    height: 750px !important;
  }

  #location-gallery {
    height: 590px !important;
  }
}

@media (min-width: 2560px) {
  #project-gallery {
    height: 800px !important;
  }

  #location-gallery {
    height: 630px !important;
  }
}
