@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --bg: #050505;
  --panel: rgba(17, 15, 14, 0.78);
  --panel-border: rgba(255, 255, 255, 0.14);
  --field-border: rgba(255, 255, 255, 0.24);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --accent: #ed2d93;
  --footer-text: #4c4c50;
  --footer-soft: #707075;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.landing {
  min-height: 100svh;
}

.mobile-hero {
  display: none;
}

.mobile-location,
.mobile-dorms {
  display: none;
}

.artboard {
  --desktop-form-scale: 1;
  position: relative;
  width: 100%;
  min-height: 100svh;
  background: url("img/fundo.jpg") center center / 100% 100% no-repeat;
  overflow: hidden;
  isolation: isolate;
}

.lead-card {
  --submit-height: clamp(24px, 1.65vw, 36px);
  --form-bottom-gap: clamp(12px, 0.95vw, 20px);
  position: absolute;
  z-index: 1;
  left: 15.6%;
  top: 53.9%;
  width: min(39.4vw, 742px);
  padding: clamp(16px, 1.05vw, 22px) clamp(20px, 1.4vw, 26px) 0;
  box-shadow: none;
  overflow: visible;
  transform: scale(var(--desktop-form-scale));
  transform-origin: top left;
}

.lead-card::before {
  content: "";
  position: absolute;
  inset: 0 0 var(--submit-height) 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(
    180deg,
    rgba(14, 13, 13, 0.54) 0%,
    rgba(12, 11, 11, 0.66) 100%
  );
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 22px),
    calc(100% - 26px) 100%,
    0 100%
  );
  z-index: -1;
}

.lead-card__header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: clamp(16px, 1.2vw, 26px);
  margin-bottom: clamp(12px, 0.9vw, 18px);
}

.lead-card__eyebrow {
  margin: 0;
  color: var(--accent);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(16px, 1.18vw, 26px);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lead-card__title {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(16px, 1.16vw, 24px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0.015em;
}

.lead-card__title span {
  display: block;
  margin-top: 0.18em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1vw, 20px) clamp(22px, 1.45vw, 30px);
  padding-bottom: calc(var(--submit-height) + var(--form-bottom-gap));
}

.field {
  display: grid;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field span {
  color: var(--text);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(13px, 0.84vw, 18px);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.field input {
  min-height: clamp(28px, 1.9vw, 40px);
  padding: 0 24px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.78em;
}

.field input:focus {
  border-color: rgba(237, 45, 147, 0.85);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 -1px 0 rgba(237, 45, 147, 0.8);
}

.lead-form__submit {
  grid-column: 1 / -1;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  margin: 0;
  min-height: var(--submit-height);
  border: 0;
  background: linear-gradient(90deg, #ed2d93 0%, #ef3f9e 100%);
  color: var(--text);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(18px, 1.08vw, 24px);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 1em;
  text-indent: 1em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 160ms ease,
    filter 160ms ease;
  z-index: 1;
}

.lead-form__submit::after {
  content: none;
}

.lead-form__submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.lead-form__feedback {
  grid-column: 1 / -1;
  min-height: 0;
  margin: 2px 0 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(11px, 0.72vw, 13px);
}

.lead-form__feedback:empty {
  display: none;
}

.lead-form__feedback.is-error {
  color: #ffb1da;
}

.footer {
  position: absolute;
  z-index: 1;
  left: 14%;
  right: 20%;
  bottom: 0.32%;
  display: grid;
  grid-template-columns: 2.05fr 1.22fr 0.86fr 0.94fr 1.58fr;
  align-items: start;
  gap: clamp(12px, 1.15vw, 22px);
  color: var(--footer-text);
}

.footer__cluster {
  min-width: 0;
}

.footer__logo {
  display: block;
  margin-bottom: 8px;
}

.footer__brand-logos {
  display: flex;
  align-items: flex-end;
  gap: clamp(16px, 1.25vw, 26px);
  margin-bottom: 10px;
}

.footer__logo--raphson {
  width: clamp(76px, 5.6vw, 104px);
}

.footer__logo--housi {
  width: clamp(88px, 6.1vw, 122px);
  margin-bottom: 2px;
}

.footer__logo--omega {
  width: clamp(96px, 6.5vw, 128px);
  margin-bottom: 9px;
}

.footer__text-block {
  display: grid;
  gap: 4px;
}

.footer__text-block p,
.footer__cluster--note p {
  margin: 0;
}

.footer__text-block p,
.footer__contact-row,
.footer__socials,
.footer__socials a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--footer-soft);
  font-size: clamp(11px, 0.72vw, 13px);
  font-weight: 600;
  line-height: 1.18;
}

.footer__address-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.footer__text-block--address {
  gap: 2px;
}

.footer__text-block--address p {
  font-weight: 700;
}

.footer__text-block--address p:last-child {
  font-weight: 500;
  font-style: italic;
}

.footer__icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.footer__icon--pin {
  width: 15px;
  height: 15px;
  margin-top: 1px;
}

.footer__contact-row a,
.footer__socials a {
  color: inherit;
}

.footer__socials {
  gap: 4px;
  color: #915372;
}

.footer__social-icons {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.footer__cluster--contact {
  padding-top: 1px;
}

.footer__cluster--seal {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 3px;
}

.footer__seal {
  display: block;
  max-height: clamp(36px, 2.8vw, 60px);
  width: auto;
}

.footer__cluster--pbqph .footer__seal {
  max-height: clamp(42px, 3.15vw, 68px);
}

.footer__cluster--iso .footer__seal {
  max-height: clamp(44px, 3.35vw, 74px);
}

.footer__cluster--note {
  padding-left: clamp(4px, 0.35vw, 8px);
  color: var(--footer-soft);
  font-size: clamp(6px, 0.34vw, 8px);
  line-height: 1.4;
  display: grid;
  gap: 12px;
}

.footer__signature {
  display: block;
  margin-top: 22px;
  text-transform: lowercase;
}

.footer__signature a {
  font-weight: 700;
}

@media (max-width: 1180px), (max-height: 760px) {
  .lead-card {
    width: min(46vw, 640px);
  }
}

@media (max-height: 900px) and (min-width: 901px) {
  .artboard {
    --desktop-form-scale: 0.94;
  }
}

@media (max-height: 820px) and (min-width: 901px) {
  .artboard {
    --desktop-form-scale: 0.88;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .artboard {
    --desktop-form-scale: 0.8;
  }
}

@media (max-height: 700px) and (min-width: 901px) {
  .artboard {
    --desktop-form-scale: 0.72;
  }
}

@media (max-width: 1180px) {
  .footer {
    left: 8%;
    right: 8%;
  }
}

@media (max-width: 900px), (orientation: portrait) {
  .artboard {
    width: 100%;
    min-height: 100svh;
    padding: 18px clamp(18px, 5vw, 28px) 24px;
    background: url("img/fundo-mobile.jpg") center top / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 18px;
  }

  .artboard::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.04) 0%,
      rgba(0, 0, 0, 0.1) 48%,
      rgba(0, 0, 0, 0.58) 100%
    );
    z-index: 0;
  }

  .mobile-hero {
    display: flex;
    position: relative;
    z-index: 1;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding-top: 6px;
  }

  .mobile-hero__logo {
    display: block;
    width: min(100%, 300px);
    height: auto;
    margin: 0 auto;
  }

  .mobile-location,
  .mobile-dorms {
    display: block;
    position: relative;
    z-index: 1;
    width: min(100%, 430px);
    margin: 0 auto;
  }

  .mobile-location {
    padding: 18px;
    background: rgba(220, 220, 220, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 22px;
    backdrop-filter: blur(10px);
  }

  .mobile-location .footer__brand-logos {
    display: none;
  }

  .mobile-location .footer__address-row {
    justify-content: center;
  }

  .mobile-location .footer__text-block--address {
    align-items: center;
  }

  .mobile-location .footer__text-block--address p {
    font-size: 15px;
    text-align: center;
  }

  .mobile-location .footer__text-block--address p:last-child {
    font-size: 14px;
  }

  .mobile-dorms {
    display: flex;
    justify-content: center;
    position: relative;
  }

  .mobile-dorms__image {
    width: min(78%, 220px);
    height: auto;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
  }

  .mobile-dorms::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 10px;
    width: min(66%, 170px);
    height: 26px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0) 72%);
    pointer-events: none;
  }

  .lead-card,
  .footer {
    position: relative;
    inset: auto;
    transform: none;
  }

  .lead-card {
    --submit-height: 42px;
    width: min(100%, 430px);
    margin: 0 auto;
    padding: 18px 18px 0;
    overflow: visible;
  }

  .lead-card__header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lead-card__eyebrow {
    font-size: 19px;
    white-space: nowrap;
  }

  .lead-card__title {
    font-size: 19px;
  }

  .lead-form {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 0;
  }

  .lead-card::before {
    inset: 0 0 calc(var(--submit-height) + 14px) 0;
  }

  .lead-form__submit {
    position: static;
    width: 100%;
    margin: 10px 0 0;
    font-size: 23px;
    letter-spacing: 0.48em;
    text-indent: 0.48em;
    min-height: 42px;
    clip-path: none;
  }

  .footer {
    width: min(100%, 430px);
    margin: auto auto 0;
    padding: 18px 18px 16px;
    background: rgba(220, 220, 220, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(10px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 14px;
    border-radius: 22px;
  }

  .footer__cluster--address {
    display: block;
    grid-column: 1 / -1;
  }

  .footer__cluster--contact {
    grid-column: 1 / -1;
    padding-top: 0;
    text-align: center;
  }

  .footer__cluster--contact .footer__logo--omega {
    margin: 0 auto 10px;
  }

  .footer__cluster--contact .footer__text-block {
    justify-items: center;
  }

  .footer__cluster--address .footer__brand-logos {
    justify-content: center;
    margin-bottom: 0;
  }

  .footer__cluster--address .footer__address-row {
    display: none;
  }

  .footer__contact-row,
  .footer__socials {
    justify-content: center;
  }

  .footer__cluster--seal {
    justify-content: center;
    padding-top: 0;
  }

  .footer__brand-logos {
    gap: 18px;
  }

  .footer__cluster--note {
    grid-column: 1 / -1;
    font-size: 11px;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .artboard {
    padding-top: 14px;
  }

  .lead-card {
    --submit-height: 42px;
    width: min(100%, 390px);
    padding: 16px 16px 0;
  }

  .field input {
    padding: 0 14px;
  }

  .footer {
    width: min(100%, 390px);
    padding: 16px;
  }

  .lead-form__submit {
    width: 100%;
    margin-left: 0;
  }

  .mobile-hero__logo {
    width: min(100%, 270px);
  }

  .mobile-location,
  .mobile-dorms {
    width: min(100%, 390px);
  }

  .mobile-dorms__image {
    width: min(82%, 210px);
  }
}
