/* ====================================================
   INSTALATEC CRICIUMA — Design System Compartilhado
   ==================================================== */

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

:root {
  --blue:      #1035C4;
  --blue-dark: #0a28a8;
  --blue-deep: #071e7a;
  --blue-light:#e8f0fc;
  --accent:    #F0A500;
  --text:      #1a1a2e;
  --text-muted:#6b7280;
  --bg:        #ffffff;
  --bg-light:  #f7f9ff;
  --radius:    16px;
  --shadow:    0 4px 24px rgba(24,99,220,.12);
  --shadow-lg: 0 16px 48px rgba(24,99,220,.18);
  --wpp:       #25D366;
  --wpp-dark:  #1ebe5a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 99px; }

/* ── CONTAINER ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ── LABELS & TITLES ── */
.section-label {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}
.section-title span { color: var(--blue); }
.section-sub { font-size: 1.05rem; color: var(--text-muted); margin-top: 10px; max-width: 560px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 99px;
  font-weight: 700; font-size: .95rem;
  cursor: pointer; text-decoration: none;
  transition: all .25s ease; border: none; white-space: nowrap;
}
.btn-wpp { background: var(--wpp); color: #fff; }
.btn-wpp:hover { background: var(--wpp-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.35); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 18px 38px; font-size: 1.05rem; }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: rgba(255,255,255,.9); transform: translateY(-2px); }

/* ── HEADER ── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(24,99,220,.08);
  transition: box-shadow .3s;
}
header.scrolled { box-shadow: 0 4px 20px rgba(24,99,220,.12); }
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 72px;
}

/* Logo sempre sobre fundo azul */
.logo-wrap {
  background: var(--blue);
  padding: 8px 16px;
  border-radius: 10px;
  display: flex; align-items: center;
  text-decoration: none;
  transition: background .2s;
}
.logo-wrap:hover { background: var(--blue-dark); }
.logo-wrap img { height: 42px; width: auto; object-fit: contain; }

nav.main-nav { display: flex; align-items: center; gap: 28px; }
nav.main-nav a {
  color: var(--text); text-decoration: none;
  font-weight: 500; font-size: .9rem;
  transition: color .2s; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover,
nav.main-nav a.active { color: var(--blue); border-bottom-color: var(--blue); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 6px; flex-direction: column; gap: 5px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none; position: fixed;
  top: 72px; left: 0; right: 0;
  background: #fff; padding: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  z-index: 99; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text); text-decoration: none;
  font-weight: 600; padding: 14px 16px;
  border-radius: 10px; transition: background .2s;
}
.mobile-menu a:hover { background: var(--bg-light); color: var(--blue); }
.mobile-menu .btn { justify-content: center; margin-top: 8px; }

/* ── PAGE HERO (internas) ── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-dark) 60%, var(--blue) 100%);
  padding: 130px 0 70px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 500px;
  background: rgba(255,255,255,.04); border-radius: 50%;
}
.page-hero .section-label { background: rgba(255,255,255,.2); color: #fff; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; margin-bottom: 14px; }
.page-hero h1 span { color: var(--accent); }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 540px; margin: 0 auto; }

/* ── TRUST BAR ── */
.trust-bar { background: var(--blue-deep); padding: 20px 0; }
.trust-inner {
  display: flex; gap: 48px; align-items: center;
  justify-content: center; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.9); font-size: .9rem; font-weight: 500; white-space: nowrap;
}

/* ── WPP FLOAT ── */
.wpp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  display: flex; align-items: center; gap: 12px;
  background: var(--wpp); color: #fff;
  font-weight: 700; font-size: .88rem;
  padding: 14px 22px 14px 18px; border-radius: 99px;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(37,211,102,.5);
  transition: all .25s;
  animation: pulse-wpp 2.5s infinite;
}
.wpp-float:hover { background: var(--wpp-dark); transform: scale(1.05); }
.wpp-float svg { width: 24px; height: 24px; fill: #fff; flex-shrink: 0; }
@keyframes pulse-wpp {
  0%, 100% { box-shadow: 0 8px 28px rgba(37,211,102,.5); }
  50%       { box-shadow: 0 8px 40px rgba(37,211,102,.75); }
}

/* ── FOOTER ── */
footer { background: var(--text); color: rgba(255,255,255,.7); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }

/* Logo no footer: fundo azul também */
.footer-logo-wrap {
  background: var(--blue);
  display: inline-flex; align-items: center;
  padding: 8px 14px; border-radius: 10px;
  margin-bottom: 16px;
}
.footer-logo-wrap img { height: 38px; width: auto; object-fit: contain; }

.footer-brand p { font-size: .88rem; line-height: 1.65; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: rgba(255,255,255,.6); text-decoration: none; font-size: .85rem; transition: color .2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.08); margin-bottom: 24px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .8rem; }

/* ── ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(32px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: .1s; }
.fade-up.d2 { transition-delay: .2s; }
.fade-up.d3 { transition-delay: .3s; }
.fade-up.d4 { transition-delay: .4s; }
.fade-up.d5 { transition-delay: .5s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav.main-nav, .header-cta .btn-outline { display: none; }
  .hamburger { display: flex; }
  .trust-inner { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .wpp-float .wpp-text { display: none; }
  .wpp-float { padding: 16px; }
}
