/* ===================== FONTS ===================== */
@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/ClashDisplay-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/ClashDisplay-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/ClashDisplay-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ===================== VARIABLES ===================== */
:root {
  --color-bg-dark: #0F1511;
  --color-cream: #EBE4DE;
  --color-gold: #B9AD8B;
  --color-gray-tag: #888789;
  --color-gray-border: #3F4A38;
  --color-black: #000000;
  --color-white: #FFFFFF;
  --font-main: 'Clash Display', sans-serif;
}

/* ===================== RESET ===================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-cream);
  background-color: var(--color-bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

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

/* ===================== HERO SECTION ===================== */
.hero {
  position: relative;
  min-height: 1140px;
  background-color: #040901;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../assets/hero-bg.png') no-repeat;
  background-size: auto 950px;
  background-position: -113px -48px;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 48px 30px;
  min-height: 1140px;
}

/* Logo */
.hero__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo img {
  width: 223px;
  height: auto;
}

/* Tag + Title */
.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.hero__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  width: 100%;
}

.hero__tag {
  display: inline-block;
  background-color: var(--color-gray-tag);
  color: var(--color-cream);
  font-size: 15.76px;
  font-weight: 400;
  letter-spacing: 6.3px;
  text-transform: uppercase;
  padding: 5.25px 16.64px;
  line-height: 1.5;
}

.hero__title {
  font-size: 21px;
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-cream);
  line-height: 1.2;
  max-width: 451px;
}

/* Form Wrapper */
.hero__form-wrapper {
  position: relative;
  width: 100%;
  max-width: 515px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 24px 32px;
}

.hero__form-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: -1;
}

.hero__form-title {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-cream);
  text-align: center;
  letter-spacing: 0.4px;
  line-height: 1.5;
}

/* Form */
.hero__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.input-wrapper {
  position: relative;
  border: 1.2px solid var(--color-white);
  border-radius: 6px;
  padding: 0;
  margin: 0;
  transition: border-color 0.2s;
}

.input-wrapper.has-value,
.input-wrapper:focus-within {
  border-color: var(--color-cream);
}

.input-wrapper--error {
  border-color: #e74c3c;
}

/*
  Legend sempre em font-size: 12px → fieldset mantém padding-top constante → sem pulo.
  max-width: 0 + overflow: hidden oculta o texto e zera o recorte da borda no estado vazio.
*/
.input-legend {
  display: block;
  margin-left: 8px;
  padding: 0;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 400;
  color: transparent;
  letter-spacing: 0.24px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  max-width: 0;
  transition: color 0.15s ease, max-width 0.2s ease, padding 0.15s ease;
}

/* Corte nativo do fieldset/legend — sem background */
.input-wrapper:focus-within .input-legend,
.input-wrapper.has-value .input-legend {
  color: var(--color-cream);
  padding: 0 4px;
  max-width: 300px;
}

.input-wrapper input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-cream);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.32px;
  padding: 4px 20px 10px 12px;
  line-height: 1.5;
}

.input-wrapper input::placeholder {
  color: var(--color-cream);
  opacity: 0.7;
}

/* Hide placeholder when legend is visible */
.input-wrapper:focus-within input::placeholder,
.input-wrapper.has-value input::placeholder {
  color: transparent;
}

.form-error {
  font-size: 12px;
  color: #e74c3c;
  min-height: 0;
  padding: 0;
  line-height: 1.4;
  transition: all 0.2s;
}

.form-error:not(:empty) {
  padding-top: 4px;
  min-height: 20px;
}

.form-group--checkbox {
  margin-top: 4px;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.2px solid var(--color-cream);
  border-radius: 4px;
  background-color: transparent;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s, border-color 0.2s;
  margin: 0;
}

.checkbox-wrapper input[type="checkbox"]:hover {
  border-color: var(--color-gold);
}

.checkbox-wrapper input[type="checkbox"]:checked {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
}

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

.checkbox-label {
  font-size: 13px;
  color: var(--color-cream);
  line-height: 1.4;
}

.btn-submit {
  width: 100%;
  height: 51.2px;
  background-color: var(--color-gold);
  color: var(--color-black);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.32px;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 8px;
}

.btn-submit:hover {
  opacity: 0.9;
}

/* Honeypot */
.form-group-hp {
  display: none;
  visibility: hidden;
  position: absolute;
  left: -9999px;
}

/* ===================== FOOTER ===================== */
.footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  overflow: hidden;
}

.footer__bg {
  position: absolute;
  inset: 0;
  background: url('../assets/footer-texture.png') center / cover no-repeat;
  z-index: 0;
}

.footer__main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1120px;
}

/* Footer Logo Plaza */
.footer__logo-plaza {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.footer__logo-plaza-main {
  width: 160px;
  height: auto;
}

.footer__logo-plaza-sub {
  width: 70px;
  height: auto;
}

/* Disclaimer */
.footer__disclaimer {
  font-size: 10px;
  font-weight: 400;
  color: var(--color-black);
  opacity: 0.88;
  line-height: 1.5;
  text-align: justify;
  letter-spacing: 0.2px;
}

/* R3M Section */
.footer__r3m {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer__r3m-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.footer__r3m-main {
  width: 90px;
  height: auto;
}

.footer__r3m-sub {
  width: 80px;
  height: auto;
}

.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.2px solid var(--color-gray-border);
  padding: 8px 16px;
  height: 37px;
  color: var(--color-black);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.28px;
  line-height: 1.5;
  transition: background-color 0.2s;
}

.btn-phone svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-phone:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Footer Bottom */
.footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-bg-dark);
  letter-spacing: 0.24px;
  line-height: 1.5;
  flex-wrap: wrap;
}

.footer__separator {
  display: block;
  width: 1.2px;
  height: 18px;
  background-color: var(--color-gray-border);
}

.footer__bottom strong {
  font-weight: 400;
  color: var(--color-bg-dark);
}

/* ===================== NOTEBOOK (1366px) ===================== */
@media (min-width: 768px) {
  .hero {
    height: 702px;
    min-height: 0;
  }

  .hero::before {
    background-position: left center;
    background-size: cover;
  }

  .hero__content {
    padding: 56px 100px 56px calc(100% - 583px - 100px);
    min-height: 0;
    height: 702px;
    max-width: none;
  }

  .hero__form-wrapper {
    max-width: 414px;
  }

  .hero__logo img {
    width: 223px;
  }

  .hero__tag {
    font-size: 18px;
    letter-spacing: 7.2px;
    padding: 6px 19px;
  }

  .hero__title {
    font-size: 24px;
  }

  .hero__form-title {
    font-size: 20px;
  }

  /* Footer */
  .footer {
    padding: 88px 100px;
  }

  .footer__main {
    flex-direction: row;
    align-items: center;
    gap: 40px;
    max-width: 1120px;
  }

  .footer__logo-plaza {
    flex-shrink: 0;
  }

  .footer__logo-plaza-main {
    width: 170px;
  }

  .footer__logo-plaza-sub {
    width: 75px;
  }

  .footer__disclaimer {
    flex: 1;
    min-width: 0;
  }

  .footer__r3m {
    flex-shrink: 0;
  }
}

/* ===================== DESKTOP (1920px) ===================== */
@media (min-width: 1440px) {
  .hero {
    height: 100vh;
    min-height: 700px;
  }

  .hero__content {
    padding: 140px 200px 140px calc(100% - 583px - 200px);
    height: 100vh;
  }

  .hero__logo img {
    width: 265px;
  }

  .footer {
    padding: 88px 200px;
  }

  .footer__logo-plaza-main {
    width: 189px;
  }

  .footer__logo-plaza-sub {
    width: 82px;
  }

  .footer__r3m-main {
    width: 94px;
  }

  .footer__r3m-sub {
    width: 82px;
  }
}
