/*
Theme Name: Morcode
Theme URI: https://morcode.pt/
Author: Morcode
Author URI: https://morcode.pt/
Description: Morcode
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: Morcode
*/
/* Morcode Landing (Imobiliário) */
@font-face {
  font-family: "Swily Bright";
  src: url("../fonts/SwilyBright-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

.alt-font {
  font-family: "Swily Bright", ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
}

body {
  font-family: 'Inter', sans-serif;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.morcode-landing {
  background: #ffffff;
  position: relative;
}

.landing-logo {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: 200px;
  text-align: center;
  pointer-events: none;
}

.landing-logo img {
  width: 200px;
  max-width: 100%;
  height: auto;
  display: block;
}

.morcode-hero {
  height: 100vh;
  min-height: 640px;
}

.morcode-hero .carousel-item {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}

.morcode-hero .carousel-inner {
  height: 100%;
}

.morcode-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.morcode-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--morcode-overlay, rgba(0, 0, 0, 0.55));
}

.morcode-hero__caption {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  padding-top: 0;
  padding-bottom: 0;
}

.morcode-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-weight: 600;
}

.morcode-block {
  padding: 84px 0;
}

.morcode-h2 {
  font-weight: 800;
}

.morcode-media-frame {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #f8f9fa;
}

.morcode-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.morcode-media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.landing-section--center .morcode-media-frame {
  margin: 0 auto;
}

.morcode-stat {
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.95);
}

.morcode-form-section {
  padding: 94px 0;
}

.morcode-form-card {

  padding: 28px;
}

.morcode-feature-list li {
  font-size: 1.03rem;
}

.last-section {
  padding-bottom: 24px;
}

/* Landing 2: ecrã partido — esquerda imagem/cor + texto; direita formulário (sem scroll da página) */
html:has(body.morcode-landing2-page) {
  height: 100%;
  overflow: hidden;
}

body.morcode-landing2-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  box-sizing: border-box;
}

body.morcode-landing2-page.admin-bar {
  min-height: calc(100vh - 32px);
  min-height: calc(100dvh - 32px);
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
}

@media (max-width: 782px) {
  body.morcode-landing2-page.admin-bar {
    min-height: calc(100vh - 46px);
    min-height: calc(100dvh - 46px);
    height: calc(100vh - 46px);
    height: calc(100dvh - 46px);
  }
}

.morcode-landing2 {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0;
  padding: 0;
  background: #0f0f12;
}

body.morcode-landing2-page.admin-bar .morcode-landing2 {
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
}

@media (max-width: 782px) {
  body.morcode-landing2-page.admin-bar .morcode-landing2 {
    max-height: calc(100vh - 46px);
    max-height: calc(100dvh - 46px);
  }
}

.morcode-landing2 *,
.morcode-landing2 *::before,
.morcode-landing2 *::after {
  box-sizing: border-box;
}

.morcode-landing2__logo {
  pointer-events: none;
}

/* Grelha 50% | 50% em desktop; coluna em mobile */
.morcode-landing2__split {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
}

/* Só empilha em telemóvel; tablets/desktop mantêm 2 colunas */
@media (max-width: 600px) {
  .morcode-landing2__split {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 40vh) minmax(0, 1fr);
  }
}

/* Painel esquerdo: fundo (inline) cobre toda a metade; texto centrado por cima */
.morcode-landing2__visual {
  position: relative;
  min-height: 0;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background-color: #1a1a2e;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.morcode-landing2__visual--image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.morcode-landing2__visual-inner {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  width: 100%;
  display: flex;
  text-align: center;
  flex-direction: column;
  justify-content: space-between;
  height: 90vh;
}

@media (min-width: 992px) {
  .morcode-landing2__visual-inner {
    text-align: left;
    margin-right: auto;
    padding-right: 1rem;
  }
}

.morcode-landing2__form-title {
  color:#0b5f67 !important;
  text-align: center;
  margin-bottom: 40px;

}

.morcode-landing2__title {
  line-height: 1.12;
  color: #bfbeb1;
  margin: 0 0 0.85rem;
  text-wrap: balance;
  font-weight: 400;
}

.morcode-landing2__title p {
  margin-bottom: 3px;
}

.morcode-landing2__title h3 {
  font-weight: 500;
  margin-bottom: 0px;
}

.morcode-landing2__title h2 {
  font-weight: 400;
 font-size: 38px;
}


.morcode-landing2__lead {
  color: #bfbeb1;
  line-height: 1.55;
  opacity: 0.96;
}

.morcode-landing2__lead p:last-child {
  margin-bottom: 0;
}

/* Painel direito: fundo neutro + formulário centrado */
.morcode-landing2__form-side {
  min-height: 0;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.25rem);
  background: #eef1f5;
  overflow: hidden;
}

.morcode-landing2__form-wrap {
  width: 100%;
  max-width: 480px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  justify-content: center;
}

.morcode-landing2__form-card {
  flex: 0 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  max-height: min(560px, calc(100vh - 7rem));
  max-height: min(560px, calc(100dvh - 7rem));
  padding: clamp(1rem, 2.5vw, 1.65rem);
}

body.morcode-landing2-page.admin-bar .morcode-landing2__form-card {
  max-height: min(560px, calc(100vh - 7rem - 32px));
  max-height: min(560px, calc(100dvh - 7rem - 32px));
}

.morcode-landing2__copyright {
  font-size: 0.78rem;
  flex-shrink: 0;
  padding-top: 0.2rem;
  line-height: 1.35;
}

@media (max-width: 600px) {
  .morcode-landing2__form-card {
    max-height: calc(60vh - 5.5rem);
    max-height: calc(60dvh - 5.5rem);
  }
}

/* Fluent Forms (Landing 2) — visual “linha inferior” como no design */
#morcode-landing2-root.morcode-landing2 form[id^="fluentform_"],
#morcode-landing2-root.morcode-landing2 .frm-fluent-form {
  font-family: inherit;
}

#morcode-landing2-root.morcode-landing2 form[id^="fluentform_"] fieldset {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 3rem;
  row-gap: 1.35rem;
  margin: 0 !important;
}

/* 1ª linha: Nome | Email (usar nth-of-type para ignorar inputs hidden/legend) */
#morcode-landing2-root.morcode-landing2 form[id^="fluentform_"] fieldset > div.ff-field_container:nth-of-type(1) {
  grid-column: 1;
}
#morcode-landing2-root.morcode-landing2 form[id^="fluentform_"] fieldset > div.ff-el-group:nth-of-type(2) {
  grid-column: 2;
}

/* Restantes: largura total */
#morcode-landing2-root.morcode-landing2 form[id^="fluentform_"] fieldset > div:nth-of-type(n + 3) {
  grid-column: 1 / -1;
}

@media (max-width: 600px) {
  #morcode-landing2-root.morcode-landing2 form[id^="fluentform_"] fieldset {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
}

#morcode-landing2-root.morcode-landing2 form[id^="fluentform_"] .ff-el-group,
#morcode-landing2-root.morcode-landing2 form[id^="fluentform_"] .ff-field_container {
  margin: 0 !important;
}

#morcode-landing2-root.morcode-landing2 form[id^="fluentform_"] .ff-el-input--label label {
  display: inline-block;
  margin: 0 0 0.55rem !important;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0b5f67;
}

#morcode-landing2-root.morcode-landing2 form[id^="fluentform_"] .ff-el-form-control {
  width: 100%;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid rgba(11, 95, 103, 0.18) !important;
  border-radius: 0 !important;
  padding: 0.55rem 0 !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: 1rem;
  color: #0f172a;
}

#morcode-landing2-root.morcode-landing2 form[id^="fluentform_"] .ff-el-form-control::placeholder {
  color: rgba(15, 23, 42, 0.55);
}

#morcode-landing2-root.morcode-landing2 form[id^="fluentform_"] .ff-el-form-control:focus {
  border-bottom-color: #0b5f67 !important;
}

#morcode-landing2-root.morcode-landing2 form[id^="fluentform_"] .ff_submit_btn_wrapper {
  margin-top: 1.3rem !important;
}

#morcode-landing2-root.morcode-landing2 form[id^="fluentform_"] .ff-btn.ff-btn-submit {
  background: #0b5f67 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0.95rem 3.1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: none !important;
}

#morcode-landing2-root.morcode-landing2 form[id^="fluentform_"] .ff-btn.ff-btn-submit:hover {
  filter: brightness(0.92);
}