/* =========================================================
   City Code Ricardo Paranhos — Landing Page
   Desktop: layout base (Figma 1440px) | Mobile: até 960px (Figma 390px)
   ========================================================= */

:root {
  --orange: #ff8700;
  --accent: #f08300;
  --black: #000;
  --ink: #0f0f0f;
  --bar: #0b0b0b;
  --white: #fff;
  --muted: rgba(255, 255, 255, .5);
  --error: #ff9b8f;
  --font: "Zalando Sans Expanded", "Helvetica Neue", Arial, sans-serif;
  --gutter: 32px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  color: var(--white);
  background: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

h1,
h2 {
  font-weight: 400;
  font-size: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.only-mobile,
.br-mobile {
  display: none;
}

/* ---------- Botão ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--orange);
  color: var(--white);
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .2s ease, transform .2s ease, opacity .2s ease;
}

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

.btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.btn[disabled] {
  opacity: .7;
  cursor: wait;
  transform: none;
}

/* =========================================================
   HERO + FORMULÁRIO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  min-height: 824px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--black);
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .36;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(243deg, #fff 30%, #000 95%);
  mix-blend-mode: multiply;
  opacity: .62;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(1156px, 100% - var(--gutter) * 2);
  margin: 0 auto;
  padding: 172px 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 479px);
  column-gap: 64px;
  align-items: start;
}

.hero__logo {
  margin-top: 0;
}

.hero__logo img {
  width: 464px;
}

.hero__headline,
.hero__sub {
  font-size: 22.6px;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero__headline {
  margin-top: 146px;
}

.hero__sub {
  margin-top: 51px;
}

.hl {
  color: var(--orange);
}

/* ---------- Formulário ---------- */
.lead {
  margin-top: 0;
  scroll-margin-top: 24px;
}

.lead__title {
  display: flex;
  align-items: center;
  gap: 29px;
  font-size: 20px;
  line-height: 1.215;
}

.lead__pin {
  flex: none;
  width: 44px;
}

.lead__form {
  margin-top: 25px;
}

.field + .field {
  margin-top: 25px;
}

.field input,
.field select {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  line-height: 19px;
  color: var(--white);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--white);
  border-radius: 0;
  padding: 0 0 8px;
  outline: none;
  transition: border-color .2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.field input:focus,
.field select:focus {
  border-bottom-color: var(--orange);
}

.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--white);
  -webkit-box-shadow: 0 0 0 1000px var(--black) inset;
  caret-color: var(--white);
}

.field select {
  cursor: pointer;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-opacity='.6' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px top 6px;
}

.field select:invalid {
  color: var(--muted);
}

.field select option {
  color: #111;
  background: var(--white);
}

.field__error {
  min-height: 0;
  font-size: 12px;
  line-height: 1.3;
  color: var(--error);
}

.field__error:not(:empty) {
  margin-top: 6px;
}

.field.is-invalid input,
.field.is-invalid select {
  border-bottom-color: var(--error);
}

.field--choice {
  border: 0;
  min-width: 0;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

.field--choice legend {
  font-size: 16px;
  line-height: 1.3;
  color: var(--white);
  padding: 0;
  float: none;
  width: 100%;
}

.choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.choice__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  cursor: pointer;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.25;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.choice__item:hover {
  color: var(--white);
  border-color: rgba(255, 135, 0, .55);
  background: rgba(255, 135, 0, .08);
}

.choice__item input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.choice__box {
  flex: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, .45);
  border-radius: 5px;
  background: transparent;
  position: relative;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.choice__box::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--orange);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .16s ease;
}

.choice__item input:checked + .choice__box {
  border-color: var(--orange);
  background: rgba(255, 135, 0, .12);
  box-shadow: 0 0 0 3px rgba(255, 135, 0, .18);
}

.choice__item input:checked + .choice__box::after {
  transform: translate(-50%, -50%) scale(1);
}

.choice__item input:checked ~ .choice__text {
  color: var(--white);
  font-weight: 700;
}

.choice__item:has(input:checked) {
  color: var(--white);
  border-color: var(--orange);
  background: rgba(255, 135, 0, .12);
}

.choice__item input:focus-visible + .choice__box {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.field.is-invalid .choice__item {
  border-color: rgba(255, 155, 143, .7);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead__status {
  font-size: 14px;
  line-height: 1.4;
}

.lead__status:not(:empty) {
  margin-top: 20px;
}

.lead__status.is-error {
  color: var(--error);
}

.lead__status.is-success {
  color: var(--orange);
}

.lead__actions {
  margin-top: 42px;
}

.lead__status:not(:empty) + .lead__actions {
  margin-top: 24px;
}

.lead__submit {
  width: 388px;
  max-width: 100%;
  min-height: 47px;
  padding: 8px 20px;
}

/* =========================================================
   CODE FACILITIES
   ========================================================= */
.facilities {
  position: relative;
  overflow: hidden;
  background: var(--black);
  padding: 59px 0 125px;
}

.facilities__title {
  display: flex;
  align-items: center;
  gap: 42px;
  width: 438px;
  max-width: calc(100% - var(--gutter) * 2);
  min-height: 72px;
  margin: 0 auto;
  padding: 10px 16px 10px 13px;
  border: 1px solid var(--white);
  font-size: 24px;
  line-height: 36px;
  text-transform: uppercase;
}

.facilities__title img {
  flex: none;
  width: 44px;
}

.facilities__intro {
  width: min(780px, 100% - var(--gutter) * 2);
  margin: 35px auto 0;
  text-align: center;
  font-size: 22.6px;
  line-height: 1.5;
}

.facilities__list {
  display: grid;
  grid-template-columns: 377fr 358fr 316fr;
  row-gap: 92px;
  width: min(1051px, 100% - var(--gutter) * 2);
  margin: 72px auto 0;
}

.facility {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 50px;
}

.facility--mobile {
  display: none;
}

.facility__icon {
  flex: none;
  width: 56px;
  display: flex;
  justify-content: center;
}

.facility__icon img {
  width: var(--w);
}

.facility__text {
  font-size: 16px;
  line-height: 24px;
}

.facilities__grafismo {
  display: none;
}

/* =========================================================
   LOCALIZAÇÃO
   ========================================================= */
.location {
  background: var(--black);
}

.location picture {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--black);
  padding: 36px 48px 12px;
}

.location__map {
  width: auto;
  max-width: 88%;
  height: auto;
  max-height: 640px;
  object-fit: contain;
  object-position: center;
}

.location__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 120px;
  padding: 20px var(--gutter);
  background: var(--bar);
  font-size: 24px;
  line-height: 1.05;
  text-align: center;
}

.location__icon {
  flex: none;
  width: 28px;
}

/* =========================================================
   DOIS EMPREENDIMENTOS
   ========================================================= */
.projects {
  position: relative;
  overflow: hidden;
  background: var(--white);
  color: var(--black);
  padding: 67px 0 80px;
}

.projects__title {
  text-align: center;
  font-size: 26px;
  line-height: 1.4;
  text-transform: uppercase;
  padding: 0 var(--gutter);
}

.projects__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 23px;
  align-items: start;
  width: min(1250px, 100% - var(--gutter) * 2);
  margin: 66px auto 0;
}

.project {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.project__logo-wrap {
  display: block;
  width: 235px;
  margin-bottom: 20px;
}

.project__logo {
  width: 100%;
}

.project__media {
  position: relative;
  width: 100%;
}

.project__grafismo {
  position: absolute;
  right: -58px;
  top: -20px;
  width: 272px;
  z-index: 0;
}

.project__grafismo--mobile {
  display: none;
}

.project__photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 614 / 345;
  object-fit: cover;
}

.project__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 21px;
  flex-wrap: wrap;
}

.project__tag {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 37px;
  padding: 6px 16px;
  background: var(--black);
  color: var(--white);
  font-size: 20px;
  line-height: 1.2;
  text-transform: uppercase;
}

.project__spec {
  font-size: 20px;
  line-height: 1.2;
}

.project__btn {
  width: 254px;
  max-width: 100%;
  min-height: 42px;
  margin-top: 34px;
}

/* =========================================================
   RODAPÉ
   ========================================================= */
.footer {
  background: var(--black);
  padding: 56px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  width: min(1220px, 100% - var(--gutter) * 2);
  margin: 0 auto;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 46px;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 24px;
  transition: color .2s ease;
}

.footer__social a:hover {
  color: var(--orange);
}

.footer__social img {
  flex: none;
  width: 17px;
}

.footer__legal {
  margin-top: 25px;
  font-size: 14px;
  line-height: 24px;
}

.footer__logo {
  flex: none;
  width: 177px;
}

/* =========================================================
   OBRIGADO
   ========================================================= */
.thanks {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 64px var(--gutter);
  text-align: center;
  background: var(--black);
}

.thanks__logo {
  width: 360px;
}

.thanks__title {
  font-size: 28px;
  line-height: 1.3;
  text-transform: uppercase;
}

.thanks__text {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .8);
}

.thanks .btn {
  min-width: 296px;
  min-height: 49px;
  padding: 8px 24px;
}

/* =========================================================
   TELAS INTERMEDIÁRIAS
   ========================================================= */
@media (max-width: 1200px) {
  .hero__inner {
    column-gap: 48px;
  }

  .hero__headline,
  .hero__sub {
    font-size: 20px;
  }

  .location__bar {
    font-size: 20px;
  }

  .projects__grid {
    column-gap: 16px;
  }

  .projects__title {
    font-size: 22px;
  }

  .footer__social {
    column-gap: 28px;
  }
}

/* =========================================================
   MOBILE (até 960px)
   ========================================================= */
@media (max-width: 960px) {
  :root {
    --gutter: 21px;
  }

  body {
    background: var(--ink);
  }

  .only-desktop,
  .br-desktop {
    display: none;
  }

  .only-mobile {
    display: inline;
  }

  .br-mobile {
    display: inline;
  }

  /* Hero */
  .hero {
    min-height: 0;
    background: var(--ink);
  }

  .hero__bg {
    display: none;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    width: min(348px, 100% - var(--gutter) * 2);
    padding: 91px 0 25px;
    text-align: center;
  }

  .hero__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__logo img {
    width: 252px;
  }

  .hero__headline {
    font-size: 16px;
    line-height: 36px;
    max-width: 290px;
    margin-top: 47px;
  }

  .hero__sub {
    font-size: 14px;
    line-height: 27px;
    max-width: 250px;
    margin-top: 24px;
  }

  /* Formulário */
  .lead {
    margin-top: 52px;
    padding: 23px 26px 0;
    background: var(--black);
    border: 1px solid var(--white);
    text-align: left;
  }

  .lead__title {
    align-items: flex-start;
    gap: 16px;
    font-size: 20px;
  }

  .lead__pin {
    width: 27px;
    margin-top: 4px;
  }

  .lead__form {
    margin-top: 34px;
    padding: 0 1px;
  }

  .field + .field {
    margin-top: 38px;
  }

  .field--choice + .field--choice {
    margin-top: 24px;
  }

  .field input,
  .field select {
    font-size: 16px;
    padding-bottom: 4px;
  }

  .choice {
    gap: 8px;
  }

  .choice__item {
    min-height: 48px;
    padding: 10px 10px;
    font-size: 13px;
    align-items: flex-start;
  }

  .choice__box {
    margin-top: 1px;
  }

  .lead__actions {
    margin-top: 41px;
    text-align: center;
    margin-bottom: -25px;
  }

  .lead__status:not(:empty) + .lead__actions {
    margin-top: 20px;
  }

  .lead__submit {
    width: 236px;
    min-height: 55px;
    font-size: 14px;
    line-height: 17px;
    padding: 2px 20px;
  }

  /* Facilities */
  .facilities {
    background: var(--ink);
    padding: 58px 0 80px;
  }

  .facilities__title {
    width: 302px;
    min-height: 64px;
    gap: 8px;
    padding: 8px 12px 8px 19px;
    font-size: 20px;
  }

  .facilities__title img {
    width: 30px;
  }

  .facilities__intro {
    width: min(306px, 100% - var(--gutter) * 2);
    margin-top: 36px;
    font-size: 15px;
    line-height: 28px;
  }

  .facilities__list {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
    width: min(306px, 100% - var(--gutter) * 2);
    margin-top: 37px;
  }

  .facility {
    gap: 37px;
    min-height: 45px;
  }

  .facility--mobile {
    display: flex;
  }

  .facility__icon {
    width: 48px;
  }

  .facility__icon img {
    width: calc(var(--w) * .8);
  }

  .facility__text {
    font-size: 14px;
  }

  .facilities__grafismo {
    display: block;
    position: absolute;
    top: 430px;
    right: -52px;
    width: 81px;
  }

  /* Localização */
  .location picture {
    padding: 20px 18px 8px;
  }

  .location__map {
    max-width: 100%;
    max-height: 280px;
  }

  .location__icon {
    display: none;
  }

  .location__bar {
    min-height: 90px;
    padding: 16px 48px;
    background: var(--black);
    font-size: 14px;
    line-height: 24px;
    text-align: center;
  }

  /* Projetos */
  .projects {
    padding: 16px 0 28px;
  }

  .projects::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 229px;
    height: 229px;
    background: #f7f7f7;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
    z-index: 0;
  }

  .projects__title {
    position: relative;
    z-index: 1;
    font-size: 13px;
    line-height: 24px;
    max-width: 325px;
    margin: 0 auto;
  }

  .projects__grid {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    margin-top: 16px;
    row-gap: 28px;
  }

  .project__logo-wrap {
    order: 2;
    width: 172px;
    margin: 37px 0 17px;
  }

  .project__media {
    order: 1;
  }

  .project__grafismo--desktop {
    display: none;
  }

  .project__grafismo--mobile {
    display: block;
    right: 1px;
    top: -24px;
    width: 174px;
  }

  .project__photo {
    aspect-ratio: 390 / 219;
  }

  .project__meta {
    order: 3;
    flex-direction: column;
    gap: 28px;
    margin-top: 0;
    padding: 0 var(--gutter);
  }

  .project__tag {
    width: 298px;
    max-width: 100%;
    min-height: 40px;
    font-size: 16px;
  }

  .project__spec {
    font-size: 20px;
  }

  .project__btn {
    order: 4;
    width: 234px;
    min-height: 37px;
    margin-top: 20px;
  }

  /* Rodapé */
  .footer {
    background: var(--ink);
    padding: 35px 0 23px;
  }

  .footer__inner {
    flex-direction: column-reverse;
    gap: 19px;
    width: min(348px, 100% - 54px);
  }

  .footer__logo {
    width: 149px;
  }

  .footer__content {
    width: 100%;
  }

  .footer__social {
    display: grid;
    grid-template-columns: 187px minmax(0, 1fr);
    gap: 8px 0;
  }

  .footer__social a {
    font-size: 10px;
    gap: 10px;
  }

  .footer__legal {
    margin-top: 22px;
    font-size: 10px;
    line-height: 13px;
    text-align: center;
  }

  .thanks__logo {
    width: 260px;
  }

  .thanks__title {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
