/* =========================================================
   RJP Facilities — Landing Page Limpeza Empresarial
   ========================================================= */

:root {
  --navy: #002D5C;
  --navy-dark: #001E40;
  --royal: #0057B8;
  --black: #111111;
  --white: #FFFFFF;
  --light: #F5F7FA;
  --text: #444444;
  --border: #E0E0E0;
  --wa: #25D366;
  --wa-hover: #1EBE5A;
  --wa-text: #06331A;         /* texto escuro sobre o verde = contraste WCAG AA */
  --red: #C62828;
  --green: #1E8E3E;
  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(0, 45, 92, .06);
  --shadow-md: 0 10px 30px rgba(0, 45, 92, .12);
  --t: .2s ease;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; color: var(--navy); line-height: 1.25; }
:focus-visible { outline: 3px solid #7FB8FF; outline-offset: 2px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.hl { color: var(--royal); }

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

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1rem;
  text-decoration: none; text-align: center; line-height: 1.2;
  border-radius: 8px; padding: 15px 26px;
  border: 2px solid transparent; cursor: pointer;
  transition: background var(--t), color var(--t), transform var(--t), box-shadow var(--t), border-color var(--t);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 10px 16px; font-size: .9rem; }
.btn--lg { padding: 18px 26px; font-size: 1.08rem; }
.btn--block { width: 100%; }

.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }

.btn--outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--navy); }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--royal); box-shadow: 0 8px 22px rgba(0, 87, 184, .3); }
.btn--navy:disabled { opacity: .7; cursor: wait; transform: none; }

.btn--wa { background: var(--wa); color: var(--wa-text); }
.btn--wa:hover { background: var(--wa-hover); box-shadow: 0 8px 22px rgba(37, 211, 102, .35); }
.btn--wa .fa-whatsapp { font-size: 1.25em; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 1000; background: var(--navy); transition: box-shadow var(--t); }
.header.is-scrolled { box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--white); text-decoration: none;
  font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.05rem; letter-spacing: .08em;
}
.logo__icon { display: flex; flex-direction: column; gap: 4px; width: 22px; }
.logo__icon span { display: block; height: 3px; background: var(--white); border-radius: 2px; }
.logo__icon span:nth-child(2) { width: 75%; }

.logo, .btn--sm { white-space: nowrap; }
@media (max-width: 479px) { .hide-sm { display: none; } .logo { font-size: .95rem; } }
@media (max-width: 340px) { .btn--sm .btn__label { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white); padding: 44px 0 52px;
  background-color: var(--navy);
  background-image:
    linear-gradient(135deg, rgba(0, 45, 92, .94), rgba(0, 30, 64, .97)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 22px);
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px; padding: 6px 14px; font-size: .82rem; font-weight: 500; margin-bottom: 18px;
}
.hero h1 {
  color: var(--white); font-weight: 800;
  font-size: clamp(1.75rem, 6vw, 3.25rem); line-height: 1.15;
  margin-bottom: 16px; max-width: 820px;
}
.hero__sub { font-size: clamp(.98rem, 2.4vw, 1.15rem); color: rgba(255, 255, 255, .88); max-width: 680px; margin-bottom: 26px; }
.hero__ctas { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.hero__trust { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: rgba(255, 255, 255, .9); }
.hero__trust i { color: #7FB8FF; margin-right: 6px; }

@media (min-width: 640px) {
  .hero__ctas { flex-direction: row; }
  .hero__trust { flex-direction: row; flex-wrap: wrap; gap: 0; }
  .hero__trust li + li::before { content: "|"; margin: 0 14px; color: rgba(255, 255, 255, .35); }
}
.hero h1 { text-wrap: balance; }
/* Foto do hero — só aparece no desktop (no mobile o hero precisa caber na 1ª tela) */
.hero__media { display: none; }
.hero__tag {
  position: absolute; left: -24px; bottom: 32px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--navy);
  font-size: .85rem; font-weight: 600; padding: 12px 16px; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.hero__tag i { color: var(--royal); }

@media (min-width: 900px) {
  .header__inner { height: 72px; }
  .hero { padding: 72px 0 80px; }
  .hero h1 { font-size: 2.9rem; }
  /* coluna de texto mais estreita ao lado da foto: selos empilhados para não quebrar com "|" solto */
  .hero__trust { flex-direction: column; gap: 6px; }
  .hero__trust li + li::before { content: none; }
  .hero__grid { display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: center; }
  .hero__media { display: block; position: relative; margin: 0; }
  .hero__media img {
    width: 100%; height: auto; aspect-ratio: 4 / 5;
    object-fit: cover; object-position: center 20%;
    border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  }
}

/* ---------- Credenciais ---------- */
.creds { background: var(--white); border-bottom: 1px solid var(--border); padding: 28px 0; }
.creds__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
.creds__item { display: flex; align-items: center; gap: 12px; font-size: .92rem; line-height: 1.35; }
.creds__item i { font-size: 1.6rem; color: var(--royal); flex-shrink: 0; width: 32px; text-align: center; }
.creds__item strong { color: var(--navy); display: block; font-size: 1rem; }

@media (min-width: 900px) {
  .creds__grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .creds__item { justify-content: center; padding: 4px 16px; }
  .creds__item + .creds__item { border-left: 1px solid var(--border); }
}

/* ---------- Seções ---------- */
.section { padding: 64px 0; }
.section--alt { background: var(--light); }
.section__title {
  font-weight: 800; font-size: clamp(1.45rem, 4.2vw, 2.25rem);
  text-align: center; max-width: 820px; margin: 0 auto 14px;
}
.section__sub { text-align: center; max-width: 640px; margin: 0 auto 40px; font-size: 1.05rem; }
.section__title + .ps,
.section__title + .steps,
.section__title + .cards,
.section__title + .testi { margin-top: 40px; }

@media (min-width: 900px) { .section { padding: 96px 0; } }

/* ---------- Problema x Solução ---------- */
.ps { display: grid; gap: 20px; }
.ps__col { border-radius: var(--radius); padding: 28px 24px; border-left: 5px solid; }
.ps__col h3 { font-size: 1.15rem; margin-bottom: 16px; }
.ps__col ul { list-style: none; display: grid; gap: 12px; }
.ps__col li { display: flex; gap: 12px; align-items: flex-start; }
.ps__col li i { margin-top: 4px; flex-shrink: 0; }
.ps__col--bad { background: #FFF5F5; border-color: #E53935; }
.ps__col--bad i { color: var(--red); }
.ps__col--good { background: #F0FFF4; border-color: #2E7D32; }
.ps__col--good i { color: var(--green); }

@media (min-width: 768px) { .ps { grid-template-columns: 1fr 1fr; gap: 28px; } .ps__col { padding: 36px 32px; } }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 20px; }
.card {
  position: relative; background: var(--white);
  border: 1px solid var(--border); border-top: 3px solid transparent; border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-top-color: var(--royal); }
.card__icon { font-size: 2.1rem; color: var(--royal); margin-bottom: 18px; display: block; }
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p { font-size: .95rem; color: #555; }

.card--feat .card__icon {
  width: 60px; height: 60px; border-radius: 12px; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 87, 184, .08);
}

@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 26px; } }

/* ---------- Como funciona ---------- */
.steps { list-style: none; display: grid; gap: 28px; position: relative; margin-bottom: 40px; }
.step { position: relative; padding-left: 76px; }
.step__num {
  position: absolute; left: 0; top: 0; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--royal); color: var(--white);
  font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 6px rgba(0, 87, 184, .12);
}
/* linha conectando (mobile: vertical) */
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 27px; top: 56px; bottom: -28px;
  width: 2px; background: linear-gradient(var(--royal), rgba(0, 87, 184, .2));
}
.step h3 { font-size: 1.1rem; margin: 4px 0 6px; }
.step p { font-size: .95rem; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .step { padding-left: 0; text-align: center; }
  .step__num { position: relative; margin: 0 auto 20px; width: 72px; height: 72px; font-size: 1.7rem; }
  .step:not(:last-child)::after {
    left: calc(50% + 36px); right: calc(-50% + 36px - 28px);
    top: 36px; bottom: auto; width: auto; height: 2px;
    background: linear-gradient(90deg, var(--royal), rgba(0, 87, 184, .2));
  }
}

/* Variante vertical (usada ao lado da foto) — mantém o layout empilhado também no desktop */
@media (min-width: 900px) {
  .steps--vertical { grid-template-columns: 1fr; gap: 32px; margin-bottom: 0; }
  .steps--vertical .step { padding-left: 84px; text-align: left; }
  .steps--vertical .step__num { position: absolute; margin: 0; width: 60px; height: 60px; font-size: 1.45rem; }
  .steps--vertical .step:not(:last-child)::after {
    left: 29px; right: auto; top: 60px; bottom: -32px; width: 2px; height: auto;
    background: linear-gradient(var(--royal), rgba(0, 87, 184, .2));
  }
}

/* ---------- Blocos com foto (imagem + conteúdo) ---------- */
.split { display: grid; gap: 28px; margin: 40px 0; align-items: center; }
.split__media {
  margin: 0; position: relative; overflow: hidden;
  border-radius: 16px; box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3; max-height: 420px; background: #DCE3EC;
}
.split__media picture, .split__media img { display: block; width: 100%; height: 100%; }
.split__media img { object-fit: cover; object-position: center 30%; }
.split--steps { margin-bottom: 40px; }
.split--steps .split__media img { object-position: center 60%; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--royal); margin-bottom: 8px;
}
.split__text h3 { font-size: clamp(1.25rem, 3.4vw, 1.65rem); font-weight: 800; margin-bottom: 14px; }
.split__text p { margin-bottom: 18px; }
.checklist { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--navy); }
.checklist i { color: var(--green); margin-top: 4px; }

@media (min-width: 900px) {
  .split { grid-template-columns: 460px 1fr; gap: 64px; margin: 48px 0 56px; }
  .split__media { aspect-ratio: 4 / 5; max-height: none; }
  .split--steps .split__media { order: 2; }   /* foto à direita nesta seção, alternando com a de diferenciais */
  .split--steps { grid-template-columns: 1fr 460px; }
}

/* ---------- Depoimentos ---------- */
.testi {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%;
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 18px; margin: 0 -4px;
  scrollbar-width: thin;
}
.testi__card {
  scroll-snap-align: center; position: relative;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm), 0 1px 2px rgba(0, 0, 0, .04);
  padding: 32px 26px 28px; display: flex; flex-direction: column;
}
.testi__quote { position: absolute; top: 22px; right: 24px; font-size: 2.6rem; color: var(--royal); opacity: .18; }
.stars { color: #F5B301; font-size: .95rem; letter-spacing: 2px; margin-bottom: 16px; }
.testi__card blockquote { font-size: .98rem; font-style: italic; color: #333; margin-bottom: 22px; flex-grow: 1; }
.testi__card figcaption { border-top: 1px solid var(--border); padding-top: 16px; font-size: .88rem; }
.testi__card figcaption strong { display: block; color: var(--navy); font-size: 1rem; }

@media (min-width: 900px) {
  .testi { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; gap: 26px; padding: 0; margin: 0; }
  .testi__card:hover { box-shadow: var(--shadow-md); }
}

/* ---------- CTA intermediário ---------- */
.cta-band {
  background-color: var(--navy);
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 22px);
  color: var(--white); text-align: center; padding: 64px 0;
}
.cta-band h2 { color: var(--white); font-weight: 800; font-size: clamp(1.45rem, 4.2vw, 2.2rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, .88); max-width: 620px; margin: 0 auto 28px; font-size: 1.08rem; }

/* ---------- Formulário ---------- */
.form-card {
  position: relative; max-width: 560px; margin: 0 auto;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 44px 22px 30px;
}
.form-card__badge {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; background: var(--royal); color: var(--white);
  font-size: .82rem; font-weight: 600; padding: 7px 16px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 87, 184, .3);
}
@media (min-width: 560px) { .form-card { padding: 48px 40px 36px; } }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 6px; }
.req { color: var(--red); }
.opt { font-weight: 400; color: #666; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--black);
  background: var(--white); border: 1.5px solid #C9CFD8; border-radius: 8px;
  padding: 13px 14px; transition: border-color var(--t), box-shadow var(--t);
  -webkit-appearance: none; appearance: none;
}
.field select {
  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' stroke='%23002D5C' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #8A929C; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(0, 87, 184, .15);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field__error { display: block; color: var(--red); font-size: .82rem; margin-top: 4px; min-height: 0; }
.field__error:empty { display: none; }

@media (min-width: 560px) { .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; } }

.field--check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.field--check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); cursor: pointer; }
.field--check label { font-weight: 400; color: var(--text); font-size: .9rem; margin: 0; cursor: pointer; }
.field--check .field__error { grid-column: 1 / -1; }

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

.btn__spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: var(--white);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-msg--error {
  margin-top: 14px; padding: 12px 14px; border-radius: 8px;
  background: #FDECEA; color: #A51E1E; border: 1px solid #F5C2C0; font-size: .92rem;
}
.form-secure { text-align: center; font-size: .82rem; color: #666; margin-top: 14px; }
.form-secure i { margin-right: 4px; }

.form-success { text-align: center; padding: 20px 0 8px; outline: none; }
.form-success i { font-size: 3.4rem; color: var(--green); margin-bottom: 16px; }
.form-success p { font-size: 1.1rem; font-weight: 500; color: var(--navy); }

.divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: #888; font-size: .82rem; font-weight: 600; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, .82); padding-top: 56px; font-size: .92rem; }
.footer__grid { display: grid; gap: 36px; padding-bottom: 44px; }
.footer__slogan { margin-top: 14px; max-width: 300px; }
.footer__title { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer__list { list-style: none; display: grid; gap: 10px; }
.footer__list li { display: flex; gap: 10px; align-items: flex-start; }
.footer__list i { color: #7FB8FF; margin-top: 4px; width: 16px; flex-shrink: 0; }
.footer__list a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.footer__list a:hover { color: var(--white); text-decoration: underline; }
.footer__list--plain li::before { content: "›"; color: #7FB8FF; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0 90px; font-size: .82rem; text-align: center; color: rgba(255, 255, 255, .7); }

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.2fr 1.3fr 1fr; gap: 48px; }
  .footer__bottom { padding-bottom: 18px; }
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 9999;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
  animation: wa-pulse 2.2s infinite;
  transition: transform var(--t);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float__tip {
  position: absolute; right: 72px; top: 50%; transform: translateY(-50%) translateX(6px);
  background: var(--black); color: var(--white);
  font-size: .85rem; font-weight: 600; white-space: nowrap;
  padding: 8px 12px; border-radius: 6px;
  opacity: 0; pointer-events: none; transition: opacity var(--t), transform var(--t);
}
.wa-float__tip::after {
  content: ""; position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  border: 6px solid transparent; border-right: 0; border-left-color: var(--black);
}
.wa-float:hover .wa-float__tip,
.wa-float:focus-visible .wa-float__tip { opacity: 1; transform: translateY(-50%) translateX(0); }

@keyframes wa-pulse {
  0%   { box-shadow: 0 6px 20px rgba(0, 0, 0, .28), 0 0 0 0 rgba(37, 211, 102, .55); }
  70%  { box-shadow: 0 6px 20px rgba(0, 0, 0, .28), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 6px 20px rgba(0, 0, 0, .28), 0 0 0 0 rgba(37, 211, 102, 0); }
}
