:root {
  --blue: #082d85;
  --blue-dark: #061d58;
  --green: #147b38;
  --green-dark: #0c5928;
  --yellow: #ffc400;
  --cream: #fffaf0;
  --ink: #101828;
  --muted: #5e6878;
  --line: #d9e0e8;
  --white: #ffffff;
  --danger: #b42318;
  --shadow: 0 22px 60px rgba(6, 29, 88, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 196, 0, 0.1), transparent 23rem),
    linear-gradient(180deg, #fffdf7 0%, #fff 38%, #f4f7fb 100%);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.55;
}

button,
input,
select {
  font: inherit;
}

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 99;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: white;
  background: var(--blue);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgba(8, 45, 133, 0.1);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand-row {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding-block: 14px;
}

.brand-city {
  width: min(47%, 470px);
}

.brand-culture {
  width: min(42%, 410px);
}

.brand-divider {
  width: 1px;
  height: 66px;
  background: #8f99a8;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.98) 0%, rgba(255, 250, 240, 0.94) 43%, rgba(255, 250, 240, 0.08) 76%),
    url("assets/pasteis-hero.png") center 61% / cover no-repeat;
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(8, 45, 133, 0.06) 0.7px, transparent 0.7px);
  background-size: 8px 8px;
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  min-height: 690px;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}

.hero-copy {
  max-width: 650px;
  padding-block: 82px;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  padding: 9px 14px;
  border: 1px solid rgba(20, 123, 56, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.eyebrow span {
  color: var(--yellow);
}

.attention {
  display: table;
  margin: 26px 0 6px;
  padding: 2px 11px;
  color: var(--blue);
  background: var(--yellow);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}

.hero h1,
.section-heading h2,
.form-intro h2,
.form-header h2,
.success-panel h2 {
  margin: 0;
  color: var(--blue-dark);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 900;
  line-height: 0.96;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 650px;
  font-size: clamp(3.6rem, 7vw, 6.4rem);
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 600px;
  margin: 25px 0 0;
  color: #25324a;
  font-size: 1.15rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 12px 22px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(255, 196, 0, 0.9);
  outline-offset: 3px;
}

.button-primary,
.button-submit {
  color: white;
  background: var(--blue);
  box-shadow: 0 10px 25px rgba(8, 45, 133, 0.25);
}

.button-primary:hover,
.button-submit:hover {
  background: var(--blue-dark);
}

.button-ghost {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(255, 255, 255, 0.75);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-note span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
}

.hero-photo {
  align-self: stretch;
  position: relative;
}

.culture-seal {
  position: absolute;
  right: 0;
  bottom: 44px;
  display: grid;
  width: 190px;
  aspect-ratio: 1;
  place-content: center;
  border: 5px solid var(--yellow);
  border-radius: 50%;
  padding: 22px;
  color: white;
  background: var(--blue);
  box-shadow: 0 0 0 8px rgba(8, 45, 133, 0.8), 0 16px 34px rgba(6, 29, 88, 0.28);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(4deg);
}

.culture-seal strong {
  color: var(--yellow);
  font-size: 1.8rem;
}

.steps-section {
  padding: 86px 0 94px;
}

.section-heading {
  max-width: 700px;
}

.section-heading-centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.form-intro h2 {
  margin-top: 10px;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
}

.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.step-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid rgba(8, 45, 133, 0.12);
  border-radius: 20px;
  padding: 30px;
  background: white;
  box-shadow: 0 10px 30px rgba(6, 29, 88, 0.07);
}

.step-card::after {
  position: absolute;
  right: -25px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 196, 0, 0.15);
  content: "";
}

.step-number {
  color: var(--green);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  font-weight: 900;
}

.step-card h3 {
  margin: 12px 0 8px;
  color: var(--blue);
  font-size: 1.15rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
}

.form-section {
  padding: 92px 0;
  background:
    linear-gradient(135deg, rgba(8, 45, 133, 0.97), rgba(6, 29, 88, 0.98)),
    url("assets/referencia-campanha.png") center / cover;
}

.form-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 56px;
  align-items: start;
}

.form-intro {
  position: sticky;
  top: 30px;
  padding-top: 30px;
  color: white;
}

.form-intro .kicker {
  color: var(--yellow);
}

.form-intro h2 {
  max-width: 420px;
  margin-top: 12px;
  color: white;
}

.form-intro > p {
  max-width: 440px;
  color: rgba(255, 255, 255, 0.78);
}

.info-box {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.info-box p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.info-icon {
  display: grid;
  flex: 0 0 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: var(--yellow);
  font-weight: 900;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li::before {
  margin-right: 10px;
  color: var(--yellow);
  content: "✓";
  font-weight: 900;
}

.form-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.form-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  height: 6px;
  background: #edf1f6;
}

.form-progress span {
  background: #dfe5ed;
}

.form-progress .active {
  background: var(--yellow);
}

form {
  padding: 40px;
}

.form-header {
  margin-bottom: 30px;
}

.form-step-label {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-header h2 {
  margin-top: 6px;
  font-size: 2.5rem;
}

.form-header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-header p span,
label > span,
legend > span {
  color: var(--danger);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
}

.field {
  min-width: 0;
}

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

.field label:not(.check-control),
.field legend {
  display: block;
  margin-bottom: 7px;
  color: #263449;
  font-size: 0.88rem;
  font-weight: 700;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select {
  width: 100%;
  height: 50px;
  border: 1px solid #cfd7e2;
  border-radius: 10px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
}

.field input:hover,
.field select:hover {
  border-color: #98a5b5;
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.76rem;
}

.field-error {
  display: none;
  margin-top: 6px;
  color: var(--danger);
  font-size: 0.76rem;
  font-weight: 600;
}

.field.invalid .field-error,
.consent-area.invalid .field-error {
  display: block;
}

.field.invalid input,
.field.invalid select,
.field.invalid .segmented {
  border-color: var(--danger);
}

fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}

.segmented {
  display: flex;
  min-height: 50px;
  overflow: hidden;
  border: 1px solid #cfd7e2;
  border-radius: 10px;
}

.segmented label {
  flex: 1;
  margin: 0 !important;
  cursor: pointer;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented label span {
  display: grid;
  height: 100%;
  min-height: 48px;
  place-items: center;
  padding: 5px 10px;
  color: #39475c;
  text-align: center;
}

.segmented label + label span {
  border-left: 1px solid #cfd7e2;
}

.segmented input:checked + span {
  color: white;
  background: var(--blue);
  font-weight: 800;
}

.segmented input:focus-visible + span {
  outline: 3px solid var(--yellow);
  outline-offset: -3px;
}

.segmented-wide label:last-child {
  flex: 1.8;
}

.checkbox-field {
  margin-top: -5px;
}

.check-control {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
}

.check-control input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.check-control > span {
  color: #39475c;
  font-size: 0.86rem;
}

.consent-area {
  display: grid;
  gap: 16px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.form-message {
  display: none;
  margin-top: 20px;
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 0.88rem;
  font-weight: 600;
}

.form-message.visible {
  display: block;
}

.form-message.error {
  color: #8f1d14;
  background: #fff0ee;
}

.form-message.warning {
  color: #774d00;
  background: #fff7d6;
}

.button-submit {
  width: 100%;
  margin-top: 26px;
  border: 0;
}

.button-loading {
  display: none;
}

.button-submit.loading .button-label {
  display: none;
}

.button-submit.loading .button-loading {
  display: inline;
}

.button-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.submit-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.success-panel {
  padding: 70px 45px;
  text-align: center;
}

.success-icon {
  display: grid;
  width: 80px;
  height: 80px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
  box-shadow: 0 0 0 10px rgba(20, 123, 56, 0.12);
  font-size: 2.2rem;
  font-weight: 900;
}

.success-panel h2 {
  margin: 12px auto;
  font-size: 3rem;
}

.success-panel p {
  max-width: 540px;
  margin: 0 auto 24px;
  color: var(--muted);
}

.site-footer {
  padding: 38px 0;
  color: white;
  background: #051a4e;
}

.footer-content {
  display: grid;
  grid-template-columns: 160px auto 1fr;
  gap: 22px;
  align-items: center;
}

.footer-content img {
  width: 160px;
  filter: brightness(0) invert(1);
}

.footer-content div {
  display: grid;
}

.footer-content span,
.footer-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
}

.footer-content p {
  justify-self: end;
  text-align: right;
}

@media (max-width: 900px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(255, 250, 240, 0.98) 0%, rgba(255, 250, 240, 0.9) 57%, rgba(255, 250, 240, 0.08) 100%),
      url("assets/pasteis-hero.png") 62% center / cover no-repeat;
  }

  .hero-grid {
    min-height: 830px;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-copy {
    padding: 60px 0 240px;
  }

  .hero h1 {
    max-width: 700px;
  }

  .culture-seal {
    right: 24px;
    bottom: 35px;
    width: 160px;
    font-size: 1.08rem;
  }

  .culture-seal strong {
    font-size: 1.5rem;
  }

  .form-layout {
    grid-template-columns: 1fr;
  }

  .form-intro {
    position: static;
    padding-top: 0;
  }

  .footer-content {
    grid-template-columns: 140px 1fr;
  }

  .footer-content p {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .brand-row {
    min-height: 84px;
    gap: 12px;
    padding-block: 10px;
  }

  .brand-divider {
    height: 43px;
  }

  .brand-city {
    width: 49%;
  }

  .brand-culture {
    width: 44%;
  }

  .hero-grid {
    min-height: 750px;
  }

  .hero-copy {
    padding: 46px 0 225px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 16vw, 4.8rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .culture-seal {
    width: 138px;
    padding: 17px;
    font-size: 0.95rem;
  }

  .culture-seal strong {
    font-size: 1.3rem;
  }

  .steps-section,
  .form-section {
    padding: 66px 0;
  }

  .steps-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .field-full {
    grid-column: auto;
  }

  form {
    padding: 28px 20px;
  }

  .form-header h2 {
    font-size: 2.15rem;
  }

  .segmented-wide {
    flex-direction: column;
  }

  .segmented-wide label + label span {
    border-top: 1px solid #cfd7e2;
    border-left: 0;
  }

  .success-panel {
    padding: 54px 22px;
  }

  .success-panel h2 {
    font-size: 2.4rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-content img {
    width: 190px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
