/* =========================================================
   Prévia Serviços de Manutenção e Instalações LTDA
   Folha de estilos principal
   ========================================================= */
:root {
  --pv-primary: #0b3d91;
  --pv-primary-dark: #072a66;
  --pv-accent: #ff8a00;
  --pv-accent-dark: #e07800;
  --pv-dark: #0f1b2d;
  --pv-gray: #5b6677;
  --pv-light: #f4f7fb;
  --pv-radius: 14px;
  --pv-shadow: 0 10px 30px rgba(15, 27, 45, .08);
  --pv-shadow-hover: 0 18px 40px rgba(15, 27, 45, .16);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--pv-dark);
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, .navbar-brand { font-family: 'Poppins', 'Inter', sans-serif; font-weight: 700; }
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 { color: var(--pv-dark); }
.hero h1, .hero h2.text-white, .page-header h1, .about-visual h2, .about-visual h3, .cta h2, footer h5 { color: #fff; }
.hero-card h2 { color: var(--pv-dark); }
.text-secondary { color: var(--pv-gray) !important; }
a { color: var(--pv-primary); text-decoration: none; }
a:hover { color: var(--pv-accent); }
.text-accent { color: var(--pv-accent) !important; }
.text-primary-pv { color: var(--pv-primary) !important; }
.bg-light-pv { background: var(--pv-light); }
.bg-dark-pv { background: var(--pv-dark); }
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }

/* ---------- Top bar ---------- */
.topbar { background: var(--pv-dark); color: #c9d3e3; font-size: .875rem; padding: 8px 0; }
.topbar a { color: #c9d3e3; }
.topbar a:hover { color: var(--pv-accent); }
.topbar i { color: var(--pv-accent); margin-right: 6px; }

/* ---------- Navbar ---------- */
.navbar { background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.06); padding: 14px 0; transition: padding .25s; }
.navbar.scrolled { padding: 8px 0; }
.navbar-brand { display: flex; align-items: center; gap: 10px; color: var(--pv-primary); font-size: 1.45rem; }
.navbar-brand .brand-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--pv-primary), var(--pv-primary-dark)); color: #fff; font-size: 1.15rem;
}
.navbar-brand small { display: block; font-family: 'Inter', sans-serif; font-weight: 500; font-size: .68rem; color: var(--pv-gray); letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.navbar .nav-link { font-weight: 600; color: var(--pv-dark); padding: 8px 14px !important; border-radius: 8px; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--pv-primary); background: var(--pv-light); }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 10px; padding: 12px 26px; }
.btn-accent { background: var(--pv-accent); border-color: var(--pv-accent); color: #fff; }
.btn-accent:hover { background: var(--pv-accent-dark); border-color: var(--pv-accent-dark); color: #fff; transform: translateY(-2px); }
.btn-primary-pv { background: var(--pv-primary); border-color: var(--pv-primary); color: #fff; }
.btn-primary-pv:hover { background: var(--pv-primary-dark); color: #fff; transform: translateY(-2px); }
.btn-outline-light:hover { color: var(--pv-primary); }
.btn { transition: all .2s ease; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; padding: 130px 0 120px;
  background:
    linear-gradient(120deg, rgba(7,42,102,.94) 0%, rgba(11,61,145,.86) 55%, rgba(11,61,145,.70) 100%),
    url('../img/hero-pattern.svg') center/cover no-repeat, var(--pv-primary-dark);
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px;
  border-radius: 50%; background: rgba(255,138,0,.18); filter: blur(10px);
}
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.15; }
.hero .lead { color: #dbe5f5; font-size: 1.15rem; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 6px 14px; border-radius: 50px; font-size: .85rem; font-weight: 600; }
.hero-badge i { color: var(--pv-accent); }
.hero-card { background: #fff; color: var(--pv-dark); border-radius: var(--pv-radius); padding: 30px; box-shadow: 0 25px 60px rgba(0,0,0,.25); position: relative; z-index: 2; }
.hero-card .item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed #e3e8f0; }
.hero-card .item:last-child { border-bottom: 0; }
.hero-card .item i { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 10px; background: var(--pv-light); color: var(--pv-primary); }

/* ---------- Page header (internal pages) ---------- */
.page-header {
  background: linear-gradient(120deg, var(--pv-primary-dark), var(--pv-primary)); color: #fff; padding: 80px 0 70px; position: relative; overflow: hidden;
}
.page-header::after { content: ''; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,138,0,.15); }
.page-header h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.page-header .breadcrumb { margin: 0; }
.page-header .breadcrumb a { color: #c9d8f2; }
.page-header .breadcrumb-item.active, .page-header .breadcrumb-item + .breadcrumb-item::before { color: #fff; }

/* ---------- Section titles ---------- */
.eyebrow { display: inline-block; color: var(--pv-accent); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: 10px; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 16px; }
.section-sub { color: var(--pv-gray); max-width: 720px; }

/* ---------- Feature / service cards ---------- */
.card-pv { background: #fff; border: 1px solid #e9eef5; border-radius: var(--pv-radius); padding: 32px 28px; height: 100%; box-shadow: var(--pv-shadow); transition: all .25s ease; position: relative; overflow: hidden; }
.card-pv:hover { transform: translateY(-6px); box-shadow: var(--pv-shadow-hover); border-color: transparent; }
.card-pv::before { content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--pv-accent); transition: width .3s; }
.card-pv:hover::before { width: 100%; }
.icon-box { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 20px; background: linear-gradient(135deg, rgba(11,61,145,.1), rgba(11,61,145,.04)); color: var(--pv-primary); transition: all .25s; }
.card-pv:hover .icon-box { background: var(--pv-primary); color: #fff; }
.card-pv h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card-pv p { color: var(--pv-gray); margin-bottom: 0; }
.card-pv ul { padding-left: 0; list-style: none; margin: 14px 0 0; color: var(--pv-gray); font-size: .95rem; }
.card-pv ul li { padding: 3px 0; }
.card-pv ul li i { color: var(--pv-accent); margin-right: 8px; font-size: .8rem; }

/* ---------- Differentials ---------- */
.diff-item { display: flex; gap: 18px; margin-bottom: 28px; }
.diff-item .num { flex: 0 0 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--pv-accent); color: #fff; font-weight: 700; font-size: 1.1rem; }
.diff-item h4 { font-size: 1.1rem; margin-bottom: 4px; }
.diff-item p { color: var(--pv-gray); margin: 0; }

/* ---------- Process ---------- */
.step { text-align: center; padding: 10px 16px; position: relative; }
.step .circle { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--pv-primary); font-size: 1.8rem; box-shadow: var(--pv-shadow); border: 3px solid var(--pv-light); position: relative; }
.step .circle span { position: absolute; top: -4px; right: -4px; width: 28px; height: 28px; border-radius: 50%; background: var(--pv-accent); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.step h4 { font-size: 1.05rem; }
.step p { color: var(--pv-gray); font-size: .95rem; }

/* ---------- About ---------- */
.about-visual { position: relative; border-radius: 20px; background: linear-gradient(135deg, var(--pv-primary), var(--pv-primary-dark)); min-height: 420px; padding: 40px; color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.about-visual .big-icon { position: absolute; top: 30px; right: 30px; font-size: 9rem; opacity: .12; }
.about-visual .tag { align-self: flex-start; background: var(--pv-accent); display: inline-block; padding: 4px 12px; border-radius: 6px; font-weight: 700; font-size: .8rem; margin-bottom: 14px; }
.value-card { background: #fff; border-radius: var(--pv-radius); padding: 28px; height: 100%; border-left: 4px solid var(--pv-accent); box-shadow: var(--pv-shadow); }
.value-card i { font-size: 1.8rem; color: var(--pv-primary); margin-bottom: 12px; }
.value-card h3 { font-size: 1.15rem; }
.value-card p { color: var(--pv-gray); margin: 0; }
.info-table th { width: 38%; color: var(--pv-gray); font-weight: 600; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: 6px 0 6px 32px; position: relative; }
.check-list li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free', 'Font Awesome 7 Free', 'Font Awesome 5 Free'; font-weight: 900; position: absolute; left: 0; top: 7px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,138,0,.15); color: var(--pv-accent); font-size: .7rem; display: grid; place-items: center; }

/* ---------- Segments ---------- */
.segment { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 12px; padding: 18px 20px; box-shadow: var(--pv-shadow); height: 100%; font-weight: 600; }
.segment i { font-size: 1.4rem; color: var(--pv-accent); width: 30px; text-align: center; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--pv-accent), #ff6a00); color: #fff; border-radius: 22px; padding: 56px 48px; position: relative; overflow: hidden; }
.cta::after { content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.12); }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta .btn-light { color: var(--pv-accent-dark); }

/* ---------- FAQ ---------- */
.accordion-item { border: 1px solid #e6ecf4; border-radius: 12px !important; margin-bottom: 12px; overflow: hidden; }
.accordion-button { font-weight: 600; padding: 18px 22px; }
.accordion-button:not(.collapsed) { background: var(--pv-light); color: var(--pv-primary); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }

/* ---------- Contact ---------- */
.contact-card { display: flex; gap: 18px; background: #fff; padding: 24px; border-radius: var(--pv-radius); box-shadow: var(--pv-shadow); margin-bottom: 18px; }
.contact-card i { flex: 0 0 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--pv-primary); color: #fff; font-size: 1.2rem; }
.contact-card h3 { font-size: 1rem; margin-bottom: 2px; }
.contact-card p, .contact-card a { margin: 0; color: var(--pv-gray); }
.form-control, .form-select { padding: 12px 16px; border-radius: 10px; border-color: #dbe2ec; }
.form-control:focus, .form-select:focus { border-color: var(--pv-primary); box-shadow: 0 0 0 .2rem rgba(11,61,145,.12); }
.map-wrap { border-radius: var(--pv-radius); overflow: hidden; box-shadow: var(--pv-shadow); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Legal pages ---------- */
.legal h2 { font-size: 1.35rem; margin-top: 36px; color: var(--pv-primary); }
.legal p, .legal li { color: #3b4657; }

/* ---------- Footer ---------- */
footer { background: var(--pv-dark); color: #aab6c8; padding-top: 70px; font-size: .95rem; }
footer h5 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; }
footer a { color: #aab6c8; }
footer a:hover { color: var(--pv-accent); }
footer .footer-links { list-style: none; padding: 0; }
footer .footer-links li { padding: 5px 0; }
footer .footer-links i { font-size: .7rem; margin-right: 8px; color: var(--pv-accent); }
footer .social a { width: 40px; height: 40px; border-radius: 10px; display: inline-grid; place-items: center; background: rgba(255,255,255,.07); margin-right: 8px; color: #fff; }
footer .social a:hover { background: var(--pv-accent); }
footer .copy { border-top: 1px solid rgba(255,255,255,.08); margin-top: 50px; padding: 22px 0; font-size: .85rem; }

/* ---------- Floating WhatsApp & back to top ---------- */
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.9rem; box-shadow: 0 10px 25px rgba(37,211,102,.45); z-index: 1050; animation: pulse 2.2s infinite; }
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.back-top { position: fixed; right: 30px; bottom: 96px; width: 44px; height: 44px; border-radius: 12px; background: var(--pv-primary); color: #fff; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: all .25s; z-index: 1049; }
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { color: #fff; background: var(--pv-accent); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .whatsapp-float { animation: none; } }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 420px; background: #fff; border-radius: 14px; box-shadow: 0 15px 45px rgba(0,0,0,.18); padding: 20px 22px; z-index: 1060; font-size: .9rem; display: none; }
.cookie-banner.show { display: block; }

@media (max-width: 991px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; }
  .section { padding: 70px 0; }
  .hero { padding: 90px 0 80px; }
  .navbar-collapse { padding-top: 14px; }
  .cta { padding: 40px 28px; text-align: center; }
}
