:root {
  --blue: #1a1a4e;
  --orange: #ee7509;
  --orange-dark: #d4632b;
  --navy: #0a263a;
  --white: #ffffff;
  --black: #000000;
  --yellow: #fff241;
  --blue-08: rgba(26, 26, 78, 0.08);
  --blue-12: rgba(26, 26, 78, 0.12);
  --blue-65: rgba(26, 26, 78, 0.65);
  --navy-86: rgba(10, 38, 58, 0.86);
  --white-12: rgba(255, 255, 255, 0.12);
  --white-72: rgba(255, 255, 255, 0.72);
  --white-86: rgba(255, 255, 255, 0.86);
  --shadow: 0 18px 48px rgba(10, 38, 58, 0.13);
  --radius: 18px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--navy);
  background: var(--white);
  font-family: "Poppins", "Montserrat", Arial, sans-serif;
  line-height: 1.6;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--blue);
  font-weight: 700;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
}

h3 {
  font-size: 1.05rem;
}

.hero-copy,
.context-grid > *,
.benefit-card,
.form-layout > *,
.field-grid > *,
.steps-grid > *,
.authority-grid > * {
  min-width: 0;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: clamp(64px, 9vw, 96px) 0;
}

.skip-link {
  position: absolute;
  top: -50px;
  left: 20px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 6px;
  color: var(--white);
  background: var(--orange);
}

.skip-link:focus {
  top: 16px;
}

.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-kicker.inverse {
  color: var(--orange);
}

.accent-line {
  display: block;
  width: 56px;
  height: 3px;
  margin: 0 0 22px;
  background: var(--orange);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--orange);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--orange-dark);
}

.button-secondary {
  color: var(--white);
  border-color: var(--white);
  background: transparent;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--orange);
  background: rgba(238, 117, 9, 0.14);
}

.button-block {
  width: 100%;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(10, 38, 58, 0.98) 0%, rgba(26, 26, 78, 0.96) 48%, rgba(10, 38, 58, 0.68) 100%),
    url("assets/fachada-cidades.jpg") center / cover no-repeat;
}

.hero::after {
  position: absolute;
  right: -180px;
  bottom: -240px;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(238, 117, 9, 0.24);
  border-radius: 50%;
  content: "";
}

.nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0;
}

.brand img {
  width: clamp(174px, 23vw, 225px);
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

.nav-contact {
  padding: 10px 0 10px 18px;
  border-left: 2px solid var(--orange);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 394px;
  gap: clamp(40px, 7vw, 80px);
  align-items: center;
  padding: 28px 0 66px;
}

.hero-copy h1 {
  max-width: 650px;
  color: var(--white);
  font-size: clamp(2.35rem, 4.7vw, 3.45rem);
  letter-spacing: -0.045em;
}

.hero-copy h1 span {
  color: var(--orange);
}

.hero-subtitle {
  max-width: 590px;
  margin-top: 22px;
  color: var(--white);
  font-size: clamp(1.06rem, 1.8vw, 1.2rem);
  font-weight: 600;
  line-height: 1.52;
}

.hero-support {
  max-width: 600px;
  margin-top: 15px;
  color: var(--white-72);
  font-size: 0.93rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 45px;
  color: var(--white-72);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
}

.hero-locations span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-locations span::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.quick-form {
  padding: 30px;
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--white);
  box-shadow: var(--shadow);
}

.quick-form h2 {
  margin-bottom: 22px;
  font-size: 1.42rem;
}

.quick-label {
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quick-form label,
.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 600;
}

input,
select,
textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--blue-12);
  border-radius: 8px;
  color: var(--navy);
  background: var(--white);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input,
select {
  min-height: 50px;
  padding: 0 14px;
}

textarea {
  padding: 13px 14px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--blue-65);
  font-size: 0.87rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(238, 117, 9, 0.15);
}

.quick-form input,
.quick-form select {
  margin-bottom: 16px;
}

.quick-form .button {
  margin-top: 8px;
}

.form-note {
  margin-top: 13px;
  color: var(--blue-65);
  font-size: 0.75rem;
  text-align: center;
}

.context-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(42px, 8vw, 100px);
  align-items: center;
}

.context-grid h2 {
  max-width: 630px;
  margin-bottom: 18px;
}

.context-grid p:not(.section-kicker) {
  max-width: 670px;
  color: var(--blue-65);
  font-size: 0.98rem;
}

.context-card {
  position: relative;
  overflow: hidden;
  min-height: 232px;
  padding: 38px 34px;
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(26, 26, 78, 0.04);
}

.context-card strong {
  position: relative;
  display: block;
  max-width: 270px;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 1.12rem;
}

.city-mark {
  position: absolute;
  right: -10px;
  bottom: 0;
  display: flex;
  align-items: end;
  gap: 7px;
  opacity: 0.08;
}

.city-mark span {
  display: block;
  width: 46px;
  height: 128px;
  background: var(--blue);
}

.city-mark span:first-child {
  height: 84px;
}

.city-mark span:last-child {
  height: 172px;
}

.benefits {
  background: rgba(26, 26, 78, 0.035);
}

.benefits h2 {
  max-width: 700px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.benefit-card {
  min-height: 248px;
  padding: 29px 25px;
  border-radius: 13px;
  background: var(--white);
  box-shadow: 0 5px 22px rgba(10, 38, 58, 0.055);
}

.benefit-card svg {
  width: 39px;
  height: 39px;
  margin-bottom: 25px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-card h3 {
  margin-bottom: 11px;
}

.benefit-card p {
  color: var(--blue-65);
  font-size: 0.87rem;
}

.form-section {
  color: var(--white);
  background: var(--blue);
}

.form-layout {
  display: grid;
  grid-template-columns: 330px minmax(570px, 1fr);
  gap: clamp(36px, 5vw, 62px);
  align-items: start;
}

.form-intro {
  position: sticky;
  top: 30px;
}

.form-intro h2 {
  margin-bottom: 17px;
  color: var(--white);
}

.form-intro > p:not(.section-kicker) {
  color: var(--white-72);
}

.privacy-note {
  margin-top: 36px;
  padding: 25px 23px;
  border: 1px solid var(--white-12);
  border-radius: 12px;
  background: rgba(10, 38, 58, 0.28);
}

.privacy-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
}

.privacy-note p {
  color: var(--white-72);
  font-size: 0.83rem;
}

.form-card {
  padding: clamp(23px, 4vw, 39px);
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--white);
  box-shadow: var(--shadow);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
  margin-bottom: 29px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label span,
legend span {
  color: var(--orange);
}

.field small {
  color: var(--blue-65);
  font-size: 0.76rem;
  font-weight: 400;
}

fieldset {
  min-width: 0;
  margin: 0 0 29px;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 13px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 600;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.choice {
  cursor: pointer;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.choice span {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  padding: 9px 15px;
  border: 1px solid var(--blue-12);
  border-radius: 22px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 180ms ease;
}

.choice input:checked + span {
  border-color: var(--orange);
  color: var(--white);
  background: var(--orange);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.consent {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin: 4px 0 28px;
  color: var(--blue-65);
  font-size: 0.78rem;
  line-height: 1.65;
}

.consent input {
  flex: none;
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--orange);
}

.button-submit {
  width: 100%;
}

.required-note {
  margin-top: 16px;
  color: var(--blue-65);
  font-size: 0.72rem;
  text-align: center;
}

.success-message {
  padding: clamp(18px, 5vw, 44px) 0;
  text-align: center;
}

.success-icon {
  display: inline-flex;
  width: 62px;
  height: 62px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 50%;
  color: var(--white);
  background: var(--orange);
  font-size: 1.7rem;
  font-weight: 700;
}

.success-message h3 {
  margin-bottom: 13px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.success-message p {
  max-width: 450px;
  margin: 0 auto 28px;
  color: var(--blue-65);
}

.steps h2 {
  margin-bottom: 42px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.step {
  position: relative;
  padding-right: 34px;
}

.step:not(:last-child)::after {
  position: absolute;
  top: 29px;
  right: 0;
  width: 42px;
  height: 1px;
  transform: translateX(50%);
  background: rgba(238, 117, 9, 0.4);
  content: "";
}

.step > span {
  display: inline-flex;
  width: 59px;
  height: 59px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 50%;
  color: var(--white);
  background: var(--orange);
  font-size: 1rem;
  font-weight: 700;
}

.step h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.step p {
  max-width: 300px;
  color: var(--blue-65);
  font-size: 0.9rem;
}

.authority {
  color: var(--white);
  background: var(--navy);
}

.authority-grid {
  display: grid;
  grid-template-columns: 0.84fr 1fr;
  gap: clamp(37px, 7vw, 75px);
  align-items: center;
}

.authority-image {
  position: relative;
}

.authority-image::before {
  position: absolute;
  top: 18px;
  left: -18px;
  z-index: 0;
  width: 92px;
  height: calc(100% - 36px);
  background: var(--orange);
  content: "";
}

.authority-image img {
  position: relative;
  z-index: 1;
  min-height: 370px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

.authority h2 {
  max-width: 600px;
  margin-bottom: 17px;
  color: var(--white);
}

.authority p:not(.section-kicker) {
  color: var(--white-72);
}

.authority-list {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.authority-list li {
  display: flex;
  gap: 13px;
  align-items: center;
  color: var(--white-86);
  font-size: 0.91rem;
}

.authority-list li::before {
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--orange);
  content: "";
}

.final-cta {
  position: relative;
  padding: clamp(74px, 10vw, 106px) 0;
  color: var(--white);
  text-align: center;
  background:
    linear-gradient(var(--navy-86), var(--navy-86)),
    url("assets/fachada-cidades.jpg") center / cover no-repeat;
}

.final-content h2 {
  max-width: 790px;
  margin: 0 auto 16px;
  color: var(--white);
}

.final-content p {
  margin: 0 auto 32px;
  color: var(--white-86);
}

.footer {
  padding: 48px 0 39px;
  color: var(--white);
  background: var(--blue);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px 70px;
  align-items: start;
}

.footer-brand img {
  width: 196px;
  max-height: 53px;
  margin-bottom: 21px;
  object-fit: contain;
  object-position: left center;
}

.footer-brand p {
  max-width: 470px;
  color: var(--white-72);
  font-size: 0.82rem;
}

.footer-brand .creci {
  margin-top: 9px;
  color: var(--orange);
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 17px 25px;
  max-width: 380px;
  padding-top: 16px;
  color: var(--white-86);
  font-size: 0.84rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--orange);
}

.disclaimer {
  grid-column: 1 / -1;
  padding-top: 27px;
  border-top: 1px solid var(--white-12);
  color: var(--white-72);
  font-size: 0.72rem;
}

.mobile-sticky-cta {
  display: none;
}

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
    padding-top: 44px;
  }

  .quick-form {
    display: none;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-layout {
    grid-template-columns: 1fr;
  }

  .form-intro {
    position: static;
    max-width: 660px;
  }
}

/* ─── Error States ───────────────────────────────────────────────── */
.field.has-error > input,
.field.has-error > select,
.field.has-error > textarea {
  border-color: #e05252;
  box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.13);
}

.field-error-msg,
.fieldset-error-msg {
  display: block;
  min-height: 1.1em;
  margin-top: 5px;
  color: #c53030;
  font-size: 0.74rem;
  font-weight: 500;
}

fieldset.has-error .fieldset-error-msg {
  color: #c53030;
}

.consent-error-msg {
  display: block;
  min-height: 1.1em;
  margin: -10px 0 16px;
  color: #c53030;
  font-size: 0.74rem;
  font-weight: 500;
}

/* ─── Loading Button ──────────────────────────────────────────────── */
.button.loading {
  pointer-events: none;
  opacity: 0.84;
}

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
  vertical-align: -2px;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* ─── Scroll Reveal ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ─── Design Polish ──────────────────────────────────────────────── */

/* Quick form accent bar */
.quick-form {
  border-top: 4px solid var(--orange);
}

/* Benefit cards hover lift */
.benefit-card {
  border-top: 3px solid transparent;
  transition: transform 220ms ease, box-shadow 220ms ease, border-top-color 220ms ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  border-top-color: var(--orange);
  box-shadow: 0 18px 42px rgba(10, 38, 58, 0.13);
}

/* Step number hover */
.step > span {
  transition: background 180ms ease, transform 180ms ease;
}

.step:hover > span {
  background: var(--orange-dark);
  transform: scale(1.07);
}

/* Choice pills hover */
.choice:hover span {
  border-color: rgba(238, 117, 9, 0.55);
}

/* Button icon alignment */
.button {
  gap: 7px;
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* Footer link transition */
.footer-links a {
  transition: color 160ms ease;
}

/* ─── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  body {
    padding-bottom: 72px;
  }

  .container {
    width: min(var(--container), calc(100% - 34px));
  }

  .section {
    padding: 57px 0;
  }

  .nav {
    padding: 23px 0;
  }

  .nav-contact {
    display: none;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(rgba(10, 38, 58, 0.94), rgba(26, 26, 78, 0.97)),
      url("assets/fachada-cidades.jpg") 68% center / cover no-repeat;
  }

  .hero-grid {
    gap: 0;
    padding: 34px 0 58px;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 9.7vw, 2.48rem);
  }

  .hero-subtitle {
    margin-top: 19px;
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    margin-top: 28px;
  }

  .hero-locations {
    margin-top: 37px;
  }

  .context-grid,
  .authority-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .context-card {
    padding: 31px 27px;
  }

  .benefit-grid,
  .steps-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .benefit-grid {
    margin-top: 32px;
  }

  .benefit-card {
    min-height: 0;
  }

  .form-card {
    margin: 0 -2px;
  }

  .choice span {
    padding: 9px 13px;
  }

  .steps h2 {
    margin-bottom: 32px;
  }

  .steps-grid {
    gap: 34px;
  }

  .step {
    padding-right: 0;
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .authority-grid {
    display: flex;
    flex-direction: column-reverse;
  }

  .authority-image::before {
    top: -13px;
    left: 15px;
    width: calc(100% - 30px);
    height: 13px;
  }

  .authority-image img {
    min-height: 250px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: start;
    padding-top: 0;
  }

  .mobile-sticky-cta {
    position: fixed;
    right: 13px;
    bottom: 12px;
    left: 13px;
    z-index: 20;
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: var(--white);
    background: var(--orange);
    box-shadow: 0 7px 20px rgba(10, 38, 58, 0.24);
    font-size: 0.91rem;
    font-weight: 600;
  }
}
