/* ===================================================
   VISTOFACIL — CSS INSTITUCIONAL
   Usado em: sobre, como-funciona, tipos-de-vistoria, contato
   =================================================== */

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Base */
html { scroll-behavior: smooth; }

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  color: #1a1a2e;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Variaveis */
:root {
  --laranja: #F96A2B;
  --laranja-escuro: #e05820;
  --dark: #1a1a2e;
  --cinza: #F4F6F8;
  --cinza-medio: #e8eaed;
  --texto: #444;
  --texto-claro: #888;
}

/* ===================================================
   HEADER / NAV
   =================================================== */

.inst-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.inst-nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.inst-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.inst-logo img {
  height: 38px;
  width: auto;
}

.inst-logo span {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.inst-logo span em {
  color: var(--laranja);
  font-style: normal;
}

.inst-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.inst-menu a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--texto);
  text-decoration: none;
  border-radius: 8px;
  transition: .2s;
}

.inst-menu a:hover,
.inst-menu a.ativo { color: var(--laranja); background: rgba(249,106,43,.08); }

.inst-cta-btn {
  padding: 10px 22px;
  background: var(--laranja);
  color: #fff !important;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: .2s;
  white-space: nowrap;
}

.inst-cta-btn:hover { background: var(--laranja-escuro) !important; }

/* Menu hamburguer mobile */
.inst-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  border: none;
  background: none;
}

.inst-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: .3s;
}

/* ===================================================
   HERO DAS PAGINAS INTERNAS
   =================================================== */

.inst-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #2a1a0e 100%);
  padding: 80px 24px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.inst-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: var(--laranja);
  opacity: .07;
  border-radius: 50%;
}

.inst-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 240px; height: 240px;
  background: var(--laranja);
  opacity: .05;
  border-radius: 50%;
}

.inst-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.inst-hero-badge {
  display: inline-block;
  background: rgba(249,106,43,.18);
  color: var(--laranja);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
  border: 1px solid rgba(249,106,43,.3);
}

.inst-hero h1 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.2;
}

.inst-hero h1 span { color: var(--laranja); }

.inst-hero p {
  font-size: 17px;
  color: rgba(255,255,255,.75);
  max-width: 560px;
  margin: 0 auto;
}

/* ===================================================
   CONTAINER BASE
   =================================================== */

.inst-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.inst-section {
  padding: 72px 24px;
}

.inst-section-cinza {
  background: var(--cinza);
}

.inst-section-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.inst-section-title span { color: var(--laranja); }

.inst-section-sub {
  font-size: 16px;
  color: var(--texto-claro);
  margin-bottom: 48px;
  max-width: 560px;
}

.inst-divider {
  width: 48px;
  height: 4px;
  background: var(--laranja);
  border-radius: 4px;
  margin-bottom: 16px;
}

/* ===================================================
   CARDS GENERICOS
   =================================================== */

.inst-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.inst-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  border: 1.5px solid var(--cinza-medio);
  transition: .3s;
}

.inst-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(249,106,43,.12);
  border-color: rgba(249,106,43,.3);
}

.inst-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(249,106,43,.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.inst-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.inst-card p {
  font-size: 14px;
  color: var(--texto);
  line-height: 1.65;
}

/* ===================================================
   STEPS (COMO FUNCIONA)
   =================================================== */

.inst-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 600px;
}

.inst-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 36px;
}

.inst-step:last-child { padding-bottom: 0; }

.inst-step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--laranja);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.inst-step:not(:last-child) .inst-step-num::after {
  content: '';
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% + 36px - 48px);
  background: rgba(249,106,43,.25);
}

.inst-step-body { padding-top: 8px; }

.inst-step-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.inst-step-body p {
  font-size: 14px;
  color: var(--texto);
  line-height: 1.65;
}

/* ===================================================
   SPLIT (lado a lado)
   =================================================== */

.inst-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ===================================================
   CTA SECTION
   =================================================== */

.inst-cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, #2a1a0e 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.inst-cta-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: var(--laranja);
  opacity: .07;
  border-radius: 50%;
}

.inst-cta-section h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.inst-cta-section p {
  font-size: 16px;
  color: rgba(255,255,255,.7);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.inst-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.inst-btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--laranja);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 30px;
  text-decoration: none;
  transition: .2s;
}

.inst-btn-primary:hover { background: var(--laranja-escuro); transform: translateY(-2px); }

.inst-btn-outline {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 30px;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,.4);
  transition: .2s;
}

.inst-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ===================================================
   FOOTER
   =================================================== */

.inst-footer {
  background: var(--dark);
  padding: 48px 24px 32px;
  color: rgba(255,255,255,.6);
}

.inst-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 24px;
}

.inst-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.inst-footer-logo img { height: 32px; }

.inst-footer-logo span {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.inst-footer-logo span em {
  color: var(--laranja);
  font-style: normal;
}

.inst-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.inst-footer-links a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: 13px;
  transition: .2s;
}

.inst-footer-links a:hover { color: var(--laranja); }

.inst-footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.35);
}

/* ===================================================
   FORMULARIO DE CONTATO
   =================================================== */

.inst-form { display: flex; flex-direction: column; gap: 16px; }

.inst-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.inst-field { display: flex; flex-direction: column; gap: 6px; }

.inst-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
}

.inst-field input,
.inst-field textarea,
.inst-field select {
  padding: 12px 16px;
  border: 1.5px solid var(--cinza-medio);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--dark);
  background: #fff;
  transition: .2s;
  outline: none;
}

.inst-field input:focus,
.inst-field textarea:focus {
  border-color: var(--laranja);
  box-shadow: 0 0 0 3px rgba(249,106,43,.1);
}

.inst-field textarea { resize: vertical; min-height: 130px; }

.inst-form-btn {
  padding: 14px 32px;
  background: var(--laranja);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: .2s;
  align-self: flex-start;
}

.inst-form-btn:hover { background: var(--laranja-escuro); transform: translateY(-2px); }

.inst-contact-info { display: flex; flex-direction: column; gap: 24px; }

.inst-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.inst-contact-ico {
  width: 48px;
  height: 48px;
  background: rgba(249,106,43,.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.inst-contact-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.inst-contact-item p, .inst-contact-item a {
  font-size: 15px;
  color: var(--texto);
  text-decoration: none;
}

.inst-contact-item a:hover { color: var(--laranja); }

/* ===================================================
   RESPONSIVE
   =================================================== */

@media (max-width: 768px) {
  .inst-menu { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: #fff; padding: 16px 24px; box-shadow: 0 8px 24px rgba(0,0,0,.1); gap: 4px; }
  .inst-menu.aberto { display: flex; }
  .inst-hamburger { display: flex; }
  .inst-nav { position: relative; }
  .inst-split { grid-template-columns: 1fr; gap: 40px; }
  .inst-form-row { grid-template-columns: 1fr; }
  .inst-step:not(:last-child) .inst-step-num::after { display: none; }
  .inst-footer-inner { flex-direction: column; align-items: flex-start; }
  .inst-cta-btns { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .inst-section { padding: 48px 16px; }
  .inst-hero { padding: 60px 16px 50px; }
}
