/* ============================================================
   SICAP Robotics — LP1: Braço Robótico Industrial
   ============================================================ */

:root {
  --red: #c8102e;
  --red-dark: #8f0c20;
  --red-darker: #6b0918;
  --black: #141414;
  --black-soft: #1e1e1e;
  --gray-900: #232323;
  --gray-700: #4a4a4a;
  --gray-500: #6b7280;
  --gray-300: #d7d7d9;
  --gray-100: #f2f2f3;
  --yellow: #f2b705;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.18);
  --container: 1180px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: "Barlow Condensed", "Montserrat", Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin: 0 0 16px;
  color: var(--black);
}

p {
  margin: 0 0 16px;
  color: var(--gray-700);
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 820px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.35);
}

.btn--primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.8rem;
}

.btn--lg {
  padding: 16px 34px;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo-img {
  height: 42px;
  width: auto;
}

.footer__logo-img {
  height: 68px;
  width: auto;
}

.header__nav {
  display: flex;
  gap: 28px;
}

.header__nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-900);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.header__nav a:hover {
  color: var(--red);
  border-color: var(--yellow);
}

.header__menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header__menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: url("img/hero-factory-bg.png") center 38% / cover no-repeat;
  color: var(--white);
  overflow: hidden;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 10, 10, 0.94) 0%, rgba(10, 10, 10, 0.82) 32%, rgba(10, 10, 10, 0.45) 62%, rgba(10, 10, 10, 0.25) 100%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.55), transparent 40%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  padding: 108px 24px 96px;
  min-height: 620px;
  align-content: center;
}

.hero__content {
  max-width: 740px;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--yellow);
  margin-bottom: 14px;
}

.hero__title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 20px;
}

.hero__title--accent {
  color: var(--red);
  display: inline;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 24px;
}

.hero__checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
}

.hero__checklist--light li {
  color: var(--white);
  font-weight: 500;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero__actions .btn {
  padding: 15px 24px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.hero__badges .badge {
  white-space: nowrap;
}

.badge {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--gray-100);
  padding: 18px 0;
}

.trust-strip__inner p {
  text-align: center;
  margin: 0;
  font-size: 0.92rem;
  color: var(--gray-700);
}

.trust-strip__inner strong {
  color: var(--red);
}

/* ---------- Sections ---------- */
.section {
  padding: 88px 0;
}

.section--dark {
  background: var(--black);
  color: var(--white);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.75);
}

.section--light {
  background: var(--gray-100);
}

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--red);
  margin-bottom: 12px;
}

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

.eyebrow--center {
  text-align: center;
}

.section__title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  max-width: 720px;
}

.section__title--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__title--light {
  color: var(--white);
}

.section__lead {
  font-size: 1.02rem;
  max-width: 640px;
  margin-bottom: 44px;
}

.section__lead--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__lead--light {
  color: rgba(255, 255, 255, 0.75);
}

.section__note {
  text-align: center;
  max-width: 700px;
  margin: 40px auto 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Grids / Cards ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(200, 16, 46, 0.08);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card__icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.92rem;
  margin: 0;
}

.spec-card {
  background: var(--gray-900);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.spec-card:hover {
  border-color: var(--red);
  background: linear-gradient(160deg, rgba(200, 16, 46, 0.18), var(--gray-900));
  transform: translateY(-4px);
}

.spec-card h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.spec-card__range {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 10px;
}

.spec-card p:last-child {
  font-size: 0.88rem;
  margin: 0;
}

/* ---------- Integração ---------- */
.integracao__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-list__icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  margin-top: 2px;
}

.feature-list strong {
  display: block;
  font-size: 1.02rem;
  color: var(--black);
  margin-bottom: 4px;
}

.feature-list p {
  margin: 0;
  font-size: 0.92rem;
}

.integracao__visual {
  display: flex;
  justify-content: center;
}

.integracao__img {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* ---------- Vídeo / Cases ---------- */
.video-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-card__thumb {
  position: relative;
  min-height: 280px;
  background: linear-gradient(135deg, var(--gray-900), var(--black));
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card__thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(200, 16, 46, 0.35), transparent 60%);
}

.video-card__play {
  position: relative;
  width: 72px;
  height: 72px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.video-card__play:hover {
  transform: scale(1.08);
}

.video-card__body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.video-card__body h3 {
  font-size: 1.3rem;
}

.video-card__body .btn {
  align-self: flex-start;
  margin-top: 8px;
}

/* ---------- Testimonial ---------- */
.testimonial {
  background: var(--gray-100);
  padding: 64px 0;
}

.testimonial__inner {
  max-width: 760px;
  text-align: center;
}

.testimonial blockquote {
  margin: 0 0 18px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.35;
}

.testimonial__author {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Formulário ---------- */
.form-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

/* Formulário do CRM (#pw-lead-form) — estrutura/atributos não podem ser
   alterados; toda a aparência é aplicada via CSS a partir daqui. */
#pw-lead-form {
  --line: var(--gray-300);
  --navy: var(--gray-900);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

#pw-lead-form > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-900);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

#pw-lead-form > label input {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  color: var(--black);
  background: var(--white);
}

#pw-lead-form > label input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}

#pw-lead-form select:focus,
#pw-lead-form textarea:focus {
  outline: none;
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}

#pw-lead-form select:disabled {
  cursor: not-allowed;
  color: var(--gray-500);
  background: var(--gray-100);
}

#pw-lead-form input.field-invalid {
  border-color: var(--red) !important;
  background: rgba(200, 16, 46, 0.04);
}

#pw-lead-form .field-hint {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--red);
}

#pw-lead-form .lp-field-pair,
#pw-lead-form .lp-field-full,
#pw-lead-form > button[type="submit"] {
  grid-column: 1 / -1;
}

#pw-lead-form .lp-field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

#pw-lead-form .lp-field-pair > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-900);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* "Aplicação desejada" — checkboxes originais reestilizados como um campo
   de seleção (fechado por padrão, mostra a seleção, permite múltiplas
   opções). Nenhum input/name/value foi alterado — só a apresentação e um
   toggle de abrir/fechar (ver script.js). */
#pw-lead-form div.lp-field-full {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
}

#pw-lead-form div.lp-field-full > span {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 !important;
  padding: 12px 14px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: var(--gray-900) !important;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
  user-select: none;
}

#pw-lead-form div.lp-field-full > span::after {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--gray-500);
  border-bottom: 2px solid var(--gray-500);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

#pw-lead-form div.lp-field-full.is-open > span::after {
  transform: rotate(-135deg);
}

#pw-lead-form div.lp-field-full > span:hover {
  background: var(--gray-100);
}

#pw-lead-form div.lp-field-full > label {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  border-top: 1px solid var(--gray-100);
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  text-transform: none !important;
  color: var(--gray-900) !important;
  cursor: pointer;
}

#pw-lead-form div.lp-field-full > label:hover {
  background: var(--gray-100);
}

#pw-lead-form div.lp-field-full input[type="checkbox"] {
  accent-color: var(--red);
  width: 16px;
  height: 16px;
}

#pw-lead-form div.lp-field-full:not(.is-open) > label {
  display: none !important;
}

#pw-lead-form label.lp-field-full {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-900);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

#pw-lead-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 34px;
  margin-top: 4px;
  border-radius: 6px;
  border: 2px solid transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}

#pw-lead-form button[type="submit"]:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 6px 22px;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--black);
  list-style: none;
  position: relative;
  padding-right: 30px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 16px;
  font-size: 1.4rem;
  color: var(--red);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding-bottom: 20px;
  margin: 0;
  font-size: 0.92rem;
}

/* ---------- CTA final ---------- */
.cta-final {
  background: linear-gradient(120deg, var(--red-dark), var(--red));
  padding: 60px 0;
}

.cta-final__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-final h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  max-width: 620px;
  margin: 0;
}

.cta-final .btn--primary {
  background: var(--black);
  box-shadow: none;
}

.cta-final .btn--primary:hover {
  background: var(--black-soft);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  margin-top: 14px;
}

.footer__col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer__col-subheading {
  margin-top: 22px;
}

.footer__col p {
  font-size: 0.88rem;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.6);
}

.footer__col a:hover {
  color: var(--yellow);
}

.footer__bottom {
  padding: 20px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer__bottom p {
  margin: 0 0 6px;
}

.footer__bottom p:last-child {
  margin-bottom: 0;
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 60;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero__inner {
    padding-top: 64px;
  }

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .integracao__grid {
    grid-template-columns: 1fr;
  }

  .integracao__visual {
    order: -1;
    max-width: 420px;
    margin: 0 auto 24px;
  }

  .video-card {
    grid-template-columns: 1fr;
  }

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

  .footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header__nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-100);
    display: none;
  }

  .header__nav.is-open {
    display: flex;
  }

  .header__menu-toggle {
    display: flex;
  }

  .header__cta {
    display: none;
  }

  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  #pw-lead-form,
  #pw-lead-form .lp-field-pair {
    grid-template-columns: 1fr;
  }

  .cta-final__inner {
    flex-direction: column;
    text-align: center;
  }
}
