/* ==========================================================================
   compramosatuacasa.pt — landing page
   ========================================================================== */

:root {
  --navy: #0e2340;
  --navy-deep: #0b1d36;
  --text: #1b2a3f;
  --muted: #5d6878;
  --orange: #f2612a;
  --orange-dark: #dc4f1b;
  --orange-soft: #fde9df;

  --bg-cream: #fbf8f4;
  --bg-light: #faf8f5;
  --bg-beige: #f4efe8;
  --white: #ffffff;
  --border: #ebe5dc;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(14, 35, 64, 0.04), 0 2px 8px rgba(14, 35, 64, 0.04);
  --shadow: 0 10px 30px rgba(14, 35, 64, 0.10);
  --shadow-btn: 0 6px 16px rgba(242, 97, 42, 0.28);

  --container: 1200px;
  --gutter: 24px;
  --header-h: 76px;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

h1, h2, h3 {
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.text-accent { color: var(--orange); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid rgba(242, 97, 42, 0.45);
  outline-offset: 2px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 28px;
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn .icon { width: 20px; height: 20px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }

.btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}
.btn--primary:hover { background: var(--orange-dark); }
.btn--primary:active { transform: translateY(1px); }

.btn--sm { min-height: 42px; padding: 10px 22px; font-size: .9375rem; }
.btn--lg { min-height: 60px; padding: 16px 32px; font-size: 1.125rem; }
.btn--block { width: 100%; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  flex-shrink: 0;
}
.logo img {
  width: auto;
  height: 32px;
}

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid rgba(14, 35, 64, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__list {
  display: flex;
  gap: 32px;
}
.nav__list a {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
  transition: color .2s;
}
.nav__list a:hover { color: var(--orange); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-cream);
}

.hero__media {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: url("../img/hero.jpg") center / cover no-repeat;
}
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg-cream) 0%, var(--bg-cream) 30%, rgba(251, 248, 244, 0.75) 42%, rgba(251, 248, 244, 0) 62%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: center;
  gap: 40px;
  padding-block: 48px;
}

.hero__content { max-width: 600px; }

.hero__title {
  font-size: clamp(2.5rem, 4.6vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero__lead {
  margin-top: 20px;
  max-width: 460px;
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}

.hero__cta { margin-top: 36px; }

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  margin-top: 44px;
}
.checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}
.checks__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  flex-shrink: 0;
}
.checks__dot .icon { width: 16px; height: 16px; stroke-width: 3; }

/* ---------- Cartão do formulário ---------- */
.lead-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 22px 24px;
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.lead-card__title {
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.lead-card__text {
  margin-top: 8px;
  font-size: .875rem;
  color: var(--muted);
}

.lead-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242, 97, 42, 0.15);
}
.field.is-invalid { border-color: #d93025; }

.field__icon {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 20px;
  color: var(--navy);
  stroke-width: 1.6;
  pointer-events: none;
}

.field input,
.field select {
  width: 100%;
  height: 50px;
  padding: 0 16px 0 48px;
  border: 0;
  background: transparent;
  font-size: .9375rem;
  color: var(--text);
  outline: none;
}
.field input::placeholder { color: var(--muted); opacity: 1; }

.field--stacked { min-height: 60px; }
.field__body {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 8px 16px 6px 48px;
}
.field__label {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.25;
}
.field--stacked input {
  height: auto;
  padding: 0;
  font-size: .875rem;
}

.field--select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  cursor: pointer;
}
.field--select select:invalid { color: var(--muted); }
.field__chevron {
  position: absolute;
  right: 14px;
  width: 20px;
  height: 20px;
  color: var(--navy);
  pointer-events: none;
}

.lead-form .btn { margin-top: 6px; min-height: 52px; font-size: 1.0625rem; }

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

.lead-form__error {
  font-size: .875rem;
  color: #c5221f;
}

.lead-form__privacy {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
  font-size: .75rem;
  line-height: 1.45;
  color: var(--muted);
}
.lead-form__privacy .icon {
  width: 22px;
  height: 22px;
  color: var(--orange);
  stroke-width: 2.4;
}

.lead-form__privacy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.lead-success {
  margin-top: 20px;
  padding: 24px 8px 8px;
  text-align: center;
  outline: none;
}
.lead-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
}
.lead-success__icon .icon { width: 28px; height: 28px; stroke-width: 3; }
.lead-success h3 { margin-top: 16px; font-size: 1.25rem; }
.lead-success p { margin-top: 8px; color: var(--muted); font-size: .9375rem; }

/* ---------- Secções ---------- */
.section { padding-block: 40px; }
.section--light { background: var(--bg-light); }
.section--beige { background: var(--bg-beige); }
.section--white { background: var(--white); }

.section-head h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  letter-spacing: -0.03em;
}
.section-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 1rem;
}
.section-head--center { text-align: center; }
.section-head + * { margin-top: 32px; }

/* ---------- Como funciona ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  counter-reset: step;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 20px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
/* seta entre passos */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -26px;
  width: 12px;
  height: 12px;
  background: var(--orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translateY(-50%);
}

.step__num {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: .9375rem;
  font-weight: 700;
  box-shadow: 0 0 0 4px var(--bg-light);
}

.step__icon {
  width: 32px;
  height: 32px;
  color: var(--navy);
  stroke-width: 1.5;
}
.step h3 {
  margin-top: 16px;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.step p {
  margin-top: 6px;
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- Comparação ---------- */
.versus {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 880px;
  margin-inline: auto;
}
.versus__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .9375rem;
}
.versus__table th,
.versus__table td {
  padding: 15px 20px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}
.versus__table thead th {
  padding-block: 16px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 0;
}
.versus__table thead td { border-bottom: 0; }
.versus__table tbody th {
  width: 30%;
  font-weight: 600;
  color: var(--navy);
}
.versus__table td { color: var(--muted); }
.versus__table td .icon {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  vertical-align: -4px;
  color: #b4bbc5;
  stroke-width: 2.5;
}

.versus__table .versus__us {
  background: #fff6f1;
  color: var(--navy);
  font-weight: 600;
  border-left: 2px solid var(--orange);
  border-right: 2px solid var(--orange);
}
.versus__table td.versus__us .icon { color: var(--orange); stroke-width: 3; }
.versus__table thead .versus__us {
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
}
.versus__table tbody tr:last-child th,
.versus__table tbody tr:last-child td { border-bottom: 0; }
.versus__table tbody tr:last-child .versus__us {
  border-bottom: 2px solid var(--orange);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ---------- Situações ---------- */
.situations {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.situation {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 14px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.situation__icon {
  width: 42px;
  height: 42px;
  color: var(--orange);
  stroke-width: 1.4;
}
.situation h3 {
  margin-top: 14px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.situation p {
  margin-top: 8px;
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- Sobre ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.about__title {
  font-size: clamp(1.625rem, 2.6vw, 2.25rem);
  letter-spacing: -0.035em;
}
.about__text {
  margin-top: 20px;
  max-width: 540px;
  font-size: 1.125rem;
  line-height: 1.55;
  color: #3b4657;
}
.about__text strong { color: var(--navy); font-weight: 700; }

.about__values {
  display: grid;
  gap: 12px;
}
.about__values li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.about__values .icon {
  width: 30px;
  height: 30px;
  color: var(--orange);
  stroke-width: 1.5;
}
.about__values h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.about__values p {
  margin-top: 4px;
  font-size: .875rem;
  color: var(--muted);
}

.about__cta { margin-top: 28px; }

/* ---------- Confiança ---------- */
.trust {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px;
  align-items: start;
}
.trust .section-head + * { margin-top: 24px; }
.trust .section-head h2 { font-size: clamp(1.75rem, 2.8vw, 2.125rem); }

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.feature {
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.feature__icon {
  width: 30px;
  height: 30px;
  color: var(--orange);
  stroke-width: 1.5;
}
.feature h3 {
  margin-top: 14px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.feature p {
  margin-top: 8px;
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.testimonial {
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stars { display: flex; gap: 3px; color: var(--orange); }
.stars .icon { width: 15px; height: 15px; }
.testimonial blockquote {
  flex: 1;
  margin-top: 12px;
  font-size: .875rem;
  line-height: 1.5;
  color: #3b4657;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.testimonial__author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial__author span {
  display: flex;
  flex-direction: column;
  font-size: .8125rem;
  color: var(--muted);
}
.testimonial__author strong {
  font-size: .875rem;
  font-weight: 700;
  color: var(--navy);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.faq .section-head + * { margin-top: 0; }
.faq .section-head h2 { font-size: clamp(1.75rem, 2.8vw, 2.125rem); }

.faq__list { display: grid; gap: 6px; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon {
  width: 18px;
  height: 18px;
  transition: transform .2s;
}
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__item summary:hover { color: var(--orange); }
.faq__item p {
  padding: 0 16px 16px;
  font-size: .9375rem;
  color: var(--muted);
}

/* ---------- CTA final ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, var(--navy) 0%, rgba(14, 35, 64, 0.92) 30%, rgba(14, 35, 64, 0.62) 100%),
    url("../img/cta-lisboa.jpg") center 58% / cover no-repeat,
    var(--navy);
  color: var(--white);
}
.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "content badges"
    "button  badges";
  gap: 20px 32px;
  align-items: end;
  padding-block: 40px;
}
.cta__content { grid-area: content; }
.cta__content h2 {
  max-width: 560px;
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  color: var(--white);
  letter-spacing: -0.03em;
}
.cta__content p {
  margin-top: 12px;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.9);
}
.cta__btn { grid-area: button; justify-self: start; }

.cta__badges {
  grid-area: badges;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  align-self: end;
  padding-bottom: 12px;
}
.cta__badges li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9375rem;
  font-weight: 600;
}
.cta__badges .icon { width: 26px; height: 26px; stroke-width: 1.6; }

/* ---------- Rodapé ---------- */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.86);
}
.footer__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 24px;
}
.footer .logo { margin-right: auto; }
.footer .logo img { height: 24px; }
.footer__links,
.footer__contacts {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 24px;
  white-space: nowrap;
  font-size: .8125rem;
}
.footer__contacts {
  padding-left: 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  gap: 8px 32px;
}
.footer a { transition: color .2s; }
.footer a:hover { color: var(--white); }
.footer__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.footer__contacts .icon { width: 22px; height: 22px; stroke-width: 1.6; }

/* ---------- Páginas legais ---------- */
.legal {
  padding-block: 56px 72px;
  background: var(--white);
}
.legal__inner { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.legal__updated {
  margin-top: 8px;
  color: var(--muted);
  font-size: .9375rem;
}
.legal h2 {
  margin-top: 40px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.legal p,
.legal ul {
  margin-top: 14px;
  color: #3b4657;
  font-size: 1rem;
  line-height: 1.7;
}
.legal ul { padding-left: 22px; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--navy); }
.legal a { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 2px; }
.legal [data-todo] { background: #fff3c4; padding: 0 4px; border-radius: 3px; }

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1240px) {
  .header .logo img { height: 26px; }
  .nav { gap: 24px; }
  .nav__list { gap: 20px; }
  .nav__list a { font-size: .875rem; }
}

@media (max-width: 1140px) {
  .situations { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust { grid-template-columns: 1fr; gap: 24px; }
  .footer__inner,
  .footer__links,
  .footer__contacts { flex-wrap: wrap; }
  .footer__contacts { padding-left: 0; border-left: 0; }
}

@media (max-width: 1080px) {
  /* Menu móvel */
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px var(--gutter) 24px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 24px rgba(14, 35, 64, 0.08);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .2s, transform .2s;
  }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a {
    display: block;
    padding: 12px 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--border);
  }
  .nav__cta { min-height: 48px; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }

  /* Hero */
  .hero__media {
    left: 46%;
    bottom: auto;
    height: 560px;
    background-image: url("../img/hero-mobile.jpg");
    background-position: 56% center;
  }
  .hero__media::before {
    background:
      linear-gradient(90deg, var(--bg-cream) 0%, rgba(251, 248, 244, 0.6) 28%, rgba(251, 248, 244, 0) 60%),
      linear-gradient(0deg, var(--bg-cream) 0%, rgba(251, 248, 244, 0) 30%);
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 32px 24px;
  }
  .hero__content { max-width: none; }
  .hero__lead { max-width: 58%; }
  .hero__title { font-size: clamp(2rem, 7.4vw, 3.25rem); }
  .hero__lead { margin-top: 14px; font-size: 1.0625rem; }
  .hero__cta { display: none; }
  .checks { margin-top: 20px; gap: 12px 24px; }

  .lead-card { max-width: 560px; width: 100%; margin-inline: auto; }

  /* Como funciona → lista vertical */
  .steps {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 520px;
    margin-inline: auto;
  }
  .step {
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
    padding: 0;
    background: none;
    border: 0;
    text-align: left;
  }
  .step::after { display: none; }
  .step__num {
    position: static;
    transform: none;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: none;
  }
  .step__icon { width: 30px; height: 30px; flex-shrink: 0; }
  .step h3 { margin-top: 0; font-size: 1rem; }
  .step p { margin-top: 2px; }

  /* Situações → cartões horizontais em 2 colunas */
  .situations { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .situation {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 16px;
    text-align: left;
  }
  .situation__icon { width: 38px; height: 38px; flex-shrink: 0; }
  .situation h3 { margin-top: 0; font-size: .9375rem; }
  .situation p { margin-top: 4px; }

  /* Sobre */
  .about { grid-template-columns: 1fr; gap: 20px; }
  .about__text { font-size: 1rem; max-width: none; margin-top: 14px; }
  .about__values { gap: 10px; }
  .about__cta { display: none; }

  /* FAQ */
  .faq { gap: 24px; }

  /* CTA */
  .cta__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "content button"
      "badges  badges";
    align-items: center;
    padding-block: 28px;
  }
  .cta__btn { justify-self: end; }
  .cta__badges { padding-bottom: 0; gap: 12px 28px; }
  .cta__badges li { font-size: .8125rem; }

  .footer__inner { justify-content: flex-start; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }

  .header__cta { display: none; }
  .legal { padding-block: 36px 56px; }

  .cta {
    background:
      linear-gradient(90deg, rgba(14, 35, 64, 0.9) 0%, rgba(14, 35, 64, 0.66) 100%),
      url("../img/cta-lisboa-mobile.jpg") 70% center / cover no-repeat,
      var(--navy);
  }

  .logo img { height: 22px; }
  .section { padding-block: 32px; }
  .section-head + * { margin-top: 22px; }

  .hero__media { left: 48%; height: 460px; }
  .hero__lead { max-width: 62%; font-size: .9375rem; }
  .checks { gap: 10px 20px; }
  .checks li { font-size: .8125rem; }
  .checks__dot { width: 24px; height: 24px; }
  .checks__dot .icon { width: 14px; height: 14px; }

  .lead-card { padding: 20px 16px; }
  .lead-card__title { font-size: 1.1875rem; }

  .versus__table { font-size: .8125rem; }
  .versus__table th,
  .versus__table td { padding: 12px 10px; }
  .versus__table thead th { font-size: .875rem; }
  .versus__table tbody th { width: 28%; }
  .versus__table td .icon { display: none; }
  .versus__cta { width: 100%; }

  .situation { gap: 12px; padding: 14px 12px; }
  .situation__icon { width: 32px; height: 32px; }
  .situation h3 { font-size: .875rem; }
  .situation p { font-size: .75rem; }

  .about__values li { gap: 14px; padding: 14px 16px; }
  .about__values .icon { width: 26px; height: 26px; }
  .about__values h3 { font-size: .9375rem; }
  .about__values p { font-size: .8125rem; }

  .features,
  .testimonials { gap: 8px; }
  .feature { padding: 14px 10px; }
  .feature__icon { width: 26px; height: 26px; }
  .feature h3 { margin-top: 10px; font-size: .75rem; hyphens: auto; overflow-wrap: anywhere; }
  .feature p { font-size: .75rem; }
  .testimonial { padding: 14px 12px; }
  .testimonial blockquote { font-size: .8125rem; }
  .testimonial__author img { width: 44px; height: 44px; }

  .faq { grid-template-columns: 1fr; gap: 16px; }
  .faq__item summary { font-size: .875rem; padding: 12px 14px; }

  .cta__inner { gap: 16px; }
  .cta__content p { font-size: .875rem; }
  .cta__btn { padding-inline: 18px; font-size: .875rem; min-height: 42px; }
  .cta__badges { gap: 10px 20px; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .features { grid-template-columns: 1fr; }
  .feature { flex-direction: row; align-items: center; gap: 12px; }
  .feature h3 { margin-top: 0; }
  .testimonials { grid-template-columns: 1fr; }
  .cta__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "button"
      "badges";
  }
  .cta__btn { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
