/* =============================================
   BASE RESET & GLOBAL
   ============================================= */
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  font-family: 'Sora', sans-serif;
}
html {
  overflow-x: hidden;
}

h2 { font-size: 34px; }
p  { font-size: 18px; }
ul { padding: 0; }

/* =============================================
   CONTAINER
   ============================================= */
.container {
  width: 100%;
  max-width: -webkit-fill-available;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  background: url("../assets/images/bg-obrass.png") center/cover no-repeat;
  min-height: 100%;
}

.hero .container {
  padding-bottom: 2%;
  margin: 0 8%;
}

.hero_content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero_left {
  width: 55%;
  color: #ffffff;
}

.hero_logo {
  min-height: 130px;
  background: url('../assets/images/obrass_logo.png') left / cover no-repeat;
  background-size: 100%;
  margin-left: -18%;
  margin-top: 10%;
  margin-bottom: 5%;
}

.hero_title {
  font-size: 38px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0;
}

/* FIX 2: font-size corrigido para 18px igual ao site de administração */
.hero_description {
  font-size: 18px;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 35px;
  opacity: 0.95;
}

.hero_button {
  display: inline-block;
  background: #4b4b4b;
  color: #ffffff;
  padding: 18px 40px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: 0.3s ease;
}
.hero_button:hover { background: #2f2f2f; }

.hero_right {
  width: 45%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =============================================
   PLATFORM  (O que você evita)
   ============================================= */
.platform {
  padding: 80px 8%;
  background: #ffffff;
}

.platform .container {
  margin: auto;
}

.platform_content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  width: 100%;
  margin-top: 40px;
}

.platform_left  { width: 100%; }

.platform_btn {
  width: fit-content;
  padding: 16px;
}

.platform_title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 0;
  text-align: center;
}
.platform_title h2 { margin: 0; }
.platform_title p  { font-weight: 400; }

.platform_item {
  max-width: 740px;
  margin-top: 10px;
  word-break: break-word;
  border-bottom: 1px solid #e5e5e5;
}

/* FIX 3: variante sem borda inferior para remover a linha após o último item */
.platform_item--no-border {
  border-bottom: none;
}

.platform_item ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 16px;
}

.platform_item li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.platform_item li::before {
  content: "✕";
  color: #e74c3c;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.platform_item li p {
  margin: 0;
  font-size: 16px;
  color: #333;
  line-height: 1.5;
}

.platform_right {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 5%;
  margin-left: auto;
}

.platform_right iframe {
  width: 100%;
  height: 300px;
  border-radius: 8px;
}

/* =============================================
   VISTORIA HEADER – FIX 4: cor laranja (igual ao site de administração)
   ============================================= */
.vistoria_header .container {
  background-color: #f26522;
  color: white;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* =============================================
   VISTORIA / SOLUÇÃO
   ============================================= */
.vistoria {
  padding: 80px 0;
}

/* FIX 6: variantes de cor dos blocos */
.vistoria--white {
  background-color: #ffffff !important;
}

.vistoria--gray {
  background-color: #eaeaea !important;
}

.vistoria .container {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.vistoria_intro,
.vistoria_itens,
.vistoria_como {
  display: grid;
  padding: 0 8%;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* FIX 5: primeira imagem como background-image — sem corte, top centrado */
.solution-bg-img {
  width: 100%;
  height: 360px;
  background: url('../assets/images/solution.png') top center / cover no-repeat;
}

/* Segunda imagem mantida como img com altura equivalente */
.img-fixed-height {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.vistoria_intro_img,
.vistoria_itens_img,
.vistoria_como_img {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(26, 46, 26, 0.13);
  overflow: hidden;
  width: 100%;
}

.vistoria_intro_img img,
.vistoria_itens_img img,
.vistoria_como_img img {
  display: block;
  width: 100%;
  height: auto;
}

.vistoria_intro_text,
.vistoria_itens_text,
.vistoria_como_text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vistoria_intro_text p,
.vistoria_itens_text p,
.vistoria_como_text p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #3a4d3a;
}

.vistoria_destaque {
  font-weight: 700;
  color: var(--primary, #1a2e1a) !important;
  font-size: 1.0625rem !important;
  line-height: 1.65 !important;
  border-left: 3px solid var(--accent, #f05a00);
  padding-left: 16px;
}

.vistoria_itens_text h2,
.vistoria_como_text h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary, #1a2e1a);
  line-height: 1.35;
  margin-bottom: 4px;
}

/* =============================================
   CHECKLIST
   ============================================= */
.vistoria_checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vistoria_checklist li {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #3a4d3a;
  padding-left: 28px;
  position: relative;
}

.vistoria_checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background-color: #5c8a3c;
  border-radius: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8l3.5 3.5L13 4.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* =============================================
   BOTÃO CTA
   ============================================= */
.btn {
  display: inline-block;
  margin-top: 10px;
  background: #f26522;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
}
.btn:hover { background-color: #14213d; }

/* =============================================
   BANNER CTA – FIX 7: símbolo OBRASS adicionado
   ============================================= */
.numeros--orange {
  background: #f26522;
}

.numeros_content {
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  place-content: center;
  flex-wrap: wrap;
  color: white;
  gap: 16px;
}

/* Símbolo da OBRASS (igual ao site de administração) */
.numero_img {
  background: url('../assets/images/simple_logo_obrass_white.svg') center / contain no-repeat;
  width: 80px;
  height: 80px;
}

.numeros--orange .numeros_content h3 {
  font-size: 1.625rem;
  font-weight: 700;
  text-align: center;
  max-width: 640px;
  line-height: 1.4;
  margin: 0;
  color: #ffffff;
}

/* =============================================
   FORMULÁRIO DE CONTATO
   FIX 10: cor de fundo #f6f6f6 igual ao site de administração
   ============================================= */
.controle_obra_section {
  background-color: #f6f6f6;
  padding: 80px 20px;
}

.controle_obra_title {
  place-self: center;
  justify-items: center;
  text-align: center;
}

/* FIX 10: border do card #f6f6f6 igual ao site de administração */
.controle_obra_section_content {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  padding: 50px;
  border-radius: 10px;
  border: 1px solid #f6f6f6;
  border-bottom: 4px solid #f05a00;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
}

/* FIX 12: margin-bottom no subtítulo para afastar do formulário no mobile */
.subtitulo {
  color: #666;
  font-size: 18px;
  margin-bottom: 40px !important;
}

.form_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.form_group {
  text-align: left;
  min-width: 130px;
}

.form_group label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #000;
}

.form_group input[type="text"],
.form_group input[type="email"],
.form_group input[type="tel"],
.form_group input[type="number"] {
  width: 85%;
  padding: 10px;
  color: #000;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 14px;
  transition: 0.2s;
}

.form_group input:focus {
  outline: none;
  border-color: #f05a00;
}

.form_group--empty {
  visibility: hidden;
}

/* FIX 8: Consent – checkbox e texto de privacidade */
.form_consent {
  text-align: left;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  grid-column: 1 / -1;
}

.consent_label {
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.consent_label input[type="checkbox"] {
  accent-color: #f05a00;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.consent_text {
  font-size: 13px !important;
  color: #777;
  line-height: 1.5;
  margin: 0;
  max-width: 360px;
}

/* submit */
.form_button button {
  background-color: #f05a00;
  color: #ffffff;
  border: none;
  padding: 14px 60px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  font-size: 15px;
  transition: 0.2s;
}
.form_button button:hover {
  background-color: #14213d;
  transform: translateY(-1px);
}

/* notificação de envio */
.form_message {
  background-color: white;
  box-shadow: 0px 4px 20px #00000069;
  border-bottom: 4px solid #c14800;
  width: 290px;
  height: 50px;
  position: fixed;
  opacity: 0;
  top: 0;
  place-self: center;
  border-bottom-left-radius: 12px;
  align-content: center;
  text-align: center;
  border-bottom-right-radius: 12px;
  transition: opacity 0.5s ease-in;
}
.form_message.success { opacity: 1; border-bottom: 3px solid #70e000; }
.form_message.error   { opacity: 1; display: block; }

/* =============================================
   FOOTER – FIX 11: igual ao site de administração
   ============================================= */
footer {
  display: block;
  width: 100%;
  height: 60px;
  background-color: #d94f00;
  color: white;
  text-align: center;
  align-content: center;
}

/* =============================================
   RESPONSIVE  1980px+
   ============================================= */
@media (min-width: 1980px) {
  .hero_logo        { min-height: 190px; }
  .hero_description { font-size: larger !important; max-width: 85%; }
}

/* =============================================
   RESPONSIVE  max 1024px
   ============================================= */
@media (max-width: 1024px) {
  .hero .container { margin: 0 5%; }
  .hero_logo       { margin-left: 0; }
  .hero_title      { font-size: 30px; }
  .platform_content { gap: 40px; }
}

/* =============================================
   RESPONSIVE  max 768px
   ============================================= */
@media (max-width: 768px) {

  /* hero */
  .hero .container { margin: 0; padding: 0 24px; }
  .hero_content    { flex-direction: column; padding: 40px 0 48px; }
  .hero_left       { width: 100%; }

  .hero_logo {
    min-height: 90px;
    margin-left: 0;
    margin-top: 0;
    background-position: left center;
  }

  .hero_title       { font-size: 26px; }
  .hero_description { font-size: 15px; max-width: 100%; }

  .hero_button {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
    box-sizing: border-box;
  }

  .hero_right { display: none; }

  /* platform */
  .platform { padding: 56px 0; }

  .platform .container { padding: 0 24px; margin: 0; }

  .platform_title        { font-size: 20px; text-align: center; margin-bottom: 32px; }
  .platform_title h2     { font-size: 22px; }
  .platform_title p      { font-size: 15px; }
  .platform_content      { grid-template-columns: 1fr; }
  .platform_left         { width: 100%; }
  .platform_right        { width: 100%; margin-top: 0; }

  .platform_right iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .platform_btn       { width: 100%; padding: 12px 0 0; justify-items: center; }
  .platform_btn .btn  { display: block; text-align: center; }

  /* vistoria / solução */
  .vistoria         { padding: 48px 0; }
  .vistoria .container { gap: 0; }

  .vistoria_intro,
  .vistoria_itens,
  .vistoria_como {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 24px;
  }

  /* FIX 13 mobile: texto em cima, imagem embaixo */
  .vistoria_intro .vistoria_intro_img  { order: 2; }
  .vistoria_intro .vistoria_intro_text { order: 1; }

  .vistoria_como_img  { order: 2; }
  .vistoria_como_text { order: 1; }

  /* FIX 12 mobile: imagens com altura menor e topo visível */
  .solution-bg-img {
    height: 240px;
    background-position: top center;
  }

  .img-fixed-height {
    height: 240px;
    object-position: top center;
  }

  /* numeros */
  .numeros_content {
    height: auto;
    padding: 48px 24px;
  }

  .numeros--orange .numeros_content h3 {
    font-size: 1.25rem;
    padding: 0 16px;
  }

  /* formulário */
  .controle_obra_section  { padding: 48px 16px; }
  .controle_obra_title h2 { font-size: 24px; }

  /* FIX 12 mobile: subtítulo com espaço adequado do formulário */
  .subtitulo {
    font-size: 15px;
    margin-bottom: 32px !important;
  }

  .controle_obra_section_content { padding: 32px 20px; }

  .form_grid { grid-template-columns: 1fr; gap: 14px; }

  .form_group input[type="text"],
  .form_group input[type="email"],
  .form_group input[type="tel"],
  .form_group input[type="number"] {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
  }

  .form_group--empty { display: none; }

  .form_consent { grid-column: auto; }

  .form_button button {
    width: 100%;
    padding: 16px;
    font-size: 16px;
  }
}