/* ============================================================
   SIGER – Sistema de Gerenciamento para Prefeituras
   ============================================================ */

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

:root {
  --blue-900: #0a2540;
  --blue-800: #103a6b;
  --blue-600: #1a5fa8;
  --blue-500: #2271c3;
  --blue-400: #3b8ae6;
  --blue-100: #dbeafe;
  --green-600: #1c8a4a;
  --green-500: #22a857;
  --green-400: #34c369;
  --green-100: #d1fae5;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --white: #ffffff;

  --font: 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(10, 37, 64, .10);
  --shadow-lg: 0 12px 48px rgba(10, 37, 64, .16);
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(34, 113, 195, .35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34, 113, 195, .45);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn--outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}
.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn--outline-white:hover { background: rgba(255,255,255,.15); }
.btn--white {
  background: var(--white);
  color: var(--blue-600);
}
.btn--white:hover {
  background: var(--blue-100);
  transform: translateY(-2px);
}
.btn--header {
  background: var(--green-500);
  color: var(--white);
  font-size: .875rem;
  padding: 10px 20px;
}
.btn--header:hover { background: var(--green-600); transform: translateY(-1px); }
.btn--sm { padding: 8px 18px; font-size: .875rem; margin-top: 10px; }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--blue-100);
  color: var(--blue-600);
  margin-bottom: 16px;
}
.badge--dark { background: rgba(10,37,64,.08); color: var(--blue-800); }
.badge--white { background: rgba(255,255,255,.2); color: var(--white); }

/* ── Section Header ───────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-header p {
  font-size: 1.0625rem;
  color: var(--gray-500);
}
.section-header--light h2 { color: var(--white); }
.section-header--light p { color: rgba(255,255,255,.8); }

/* ── HEADER ───────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(10,37,64,.06);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.logo img { height: 52px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition);
}
.nav a:hover { color: var(--blue-500); background: var(--blue-100); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 50%, #0e4f3d 100%);
  z-index: -1;
}
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(52,195,105,.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(59,138,230,.2) 0%, transparent 60%);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__content {
  position: relative;
  max-width: 720px;
  color: var(--white);
}
.hero__content h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero__content h1 span {
  background: linear-gradient(90deg, var(--green-400), #7dd3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__content p {
  font-size: 1.125rem;
  color: rgba(255,255,255,.82);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 60px;
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
}
.stat span {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.5);
  font-size: .8125rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── MODULES ──────────────────────────────────────────────── */
.modules {
  padding: 100px 0;
  background: var(--gray-100);
}

.modules__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.module-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--gray-300);
  transition: all var(--transition);
  position: relative;
}
.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-400);
}
.module-card--highlight {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  border-color: transparent;
  color: var(--white);
}
.module-card--highlight h3,
.module-card--highlight p { color: rgba(255,255,255,.9); }

.module-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.module-card__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--blue-500);
}
.module-card--highlight .module-card__icon {
  background: rgba(255,255,255,.15);
}
.module-card--highlight .module-card__icon svg { stroke: var(--green-400); }

.module-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 10px;
}
.module-card p {
  font-size: .9375rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.module-card__new {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--green-400);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: .04em;
}

/* ── DIFFERENTIALS ────────────────────────────────────────── */
.differentials {
  padding: 100px 0;
  background: var(--white);
}
.differentials__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.differentials__text h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: 16px;
  line-height: 1.2;
}
.differentials__text > p {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: 36px;
}

.differentials__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.differentials__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.diff-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.diff-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--green-600);
}
.differentials__list li strong {
  display: block;
  font-weight: 700;
  color: var(--gray-900);
  font-size: .9375rem;
}
.differentials__list li span {
  font-size: .875rem;
  color: var(--gray-500);
}

/* visual card */
.differentials__visual { display: flex; justify-content: center; }
.visual-card {
  background: var(--blue-900);
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.visual-card__header {
  padding: 16px 24px;
  background: rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.visual-card__header span {
  color: rgba(255,255,255,.8);
  font-size: .9375rem;
  font-weight: 600;
}
.visual-card__body { padding: 40px 24px; }

.integration-map {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto;
}
.int-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--green-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: .875rem;
  box-shadow: 0 0 0 6px rgba(59,138,230,.2), 0 0 0 12px rgba(59,138,230,.1);
  z-index: 2;
}
.int-item {
  position: absolute;
  top: 50%; left: 50%;
  width: 64px; height: 24px;
  transform-origin: 0 0;
  transform: rotate(var(--angle)) translateX(88px) translateY(-12px);
  background: rgba(255,255,255,.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.85);
  font-size: .6875rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ── ABOUT ────────────────────────────────────────────────── */
.about {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
}
.about__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 0;
}
.about-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all var(--transition);
}
.about-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
}
.about-card__icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.about-card__icon svg {
  width: 26px; height: 26px;
  stroke: var(--green-400);
}
.about-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.about-card p {
  font-size: .9375rem;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
}

/* ── CTA ──────────────────────────────────────────────────── */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--green-600), var(--blue-600));
}
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta__text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.cta__text p { color: rgba(255,255,255,.85); font-size: 1rem; }
.cta__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── CONTACT ──────────────────────────────────────────────── */
.contact {
  padding: 100px 0;
  background: var(--gray-100);
}
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--gray-300);
  text-align: center;
  transition: all var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.contact-card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.contact-card__icon svg {
  width: 28px; height: 28px;
  stroke: var(--blue-500);
}
.contact-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 10px;
}
.contact-card p {
  font-size: .9375rem;
  color: var(--gray-500);
  line-height: 1.7;
}
.contact-card p a {
  color: var(--blue-500);
  font-weight: 600;
}
.contact-card__tag {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  background: var(--green-100);
  color: var(--green-600);
  border-radius: 50px;
  font-size: .8125rem;
  font-weight: 600;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--blue-900);
  padding: 60px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__brand img { height: 48px; width: auto; margin-bottom: 16px; }
.footer__brand p {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  max-width: 320px;
}
.footer__links h4 {
  font-size: .875rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__links li a {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer__links li a:hover { color: var(--green-400); }

.footer__bottom {
  padding: 20px 0;
}
.footer__bottom p {
  font-size: .875rem;
  color: rgba(255,255,255,.35);
  text-align: center;
}

/* ── WhatsApp FAB ─────────────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .45);
  transition: all var(--transition);
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37, 211, 102, .6);
}
.whatsapp-fab svg { fill: #fff; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .differentials__inner { grid-template-columns: 1fr; gap: 48px; }
  .differentials__visual { order: -1; }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-bottom: 1px solid var(--gray-300);
    box-shadow: var(--shadow);
    gap: 4px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; }
  .nav-toggle { display: flex; }
  .btn--header { display: none; }

  .hero { padding-top: 100px; }
  .hero__stats { gap: 28px; }
  .cta__inner { flex-direction: column; text-align: center; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .integration-map { width: 200px; height: 200px; }
  .int-center { width: 60px; height: 60px; font-size: .75rem; }
  .int-item { transform: rotate(var(--angle)) translateX(72px) translateY(-12px); font-size: .625rem; width: 56px; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn { justify-content: center; }
  .cta__actions { flex-direction: column; width: 100%; }
  .cta__actions .btn { justify-content: center; }
}
