/* ╔══════════════════════════════════════════════════════════════════╗
   ║ 📄 /public/home/index.css — Página Inicial (Home) CONSART ERP     ║
   ╚══════════════════════════════════════════════════════════════════╝ */

:root {
  --primary: #0057b7;
  --secondary: #0088ff;
  --text: #333;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --radius: 8px;
}

body {
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  line-height: 1.6;
}

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

/* ╔══════════════════════════════════════════════════╗
   ║ HEADER                                           ║
   ╚══════════════════════════════════════════════════╝ */
.header {
  background: #fff;
  border-bottom: 1px solid #e3e3e3;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.brand__logo {
  border-radius: var(--radius);
}

.nav__list {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.nav__list a:hover {
  color: var(--primary);
}

/* ╔══════════════════════════════════════════════════╗
   ║ HERO                                             ║
   ╚══════════════════════════════════════════════════╝ */
.hero {
  background: linear-gradient(180deg, #f0f5ff 0%, #ffffff 100%);
  padding: 4rem 0;
  text-align: center;
}

.hero--duplo {
  background: none;
  padding: 0;
}

.hero__duplo-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
}

.hero__banner {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__banner img {
  display: block;
  width: 100%;              /* ⬅️ BIGGER visual weight */
  max-width: 1600px;       /* ⬅️ prevents ultra-wide stretch */
  height: auto;
  object-fit: contain;     /* ⬅️ keeps logo/text sharp */
  border: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 🔹 Hover suave */
.hero__banner img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* 🔹 Responsivo: empilha em telas menores */
@media (max-width: 900px) {
  .hero__duplo-container { flex-direction: column; }
  .hero__banner { flex: 1 1 100%; }

  .hero__banner img {
    width: 84%;
    height: auto;
  }
}

/* ╔══════════════════════════════════════════════════╗
   ║ BOTÕES                                           ║
   ╚══════════════════════════════════════════════════╝ */
.hero__cta {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--secondary); }

.btn--outline { border: 2px solid var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }

.btn--ghost { color: var(--primary); }

.section { padding: 3rem 0; }
.section--alt { background: var(--bg-alt); }

/* ╔══════════════════════════════════════════════════╗
   ║ FOOTER                                           ║
   ╚══════════════════════════════════════════════════╝ */
.footer {
  background: #f3f6fb;
  text-align: center;
  padding: 1rem 0;
  color: #666;
}

/* ╔══════════════════════════════════════════════════╗
   ║ MÓDULOS (CARDS QUADRANTES)                      ║
   ╚══════════════════════════════════════════════════╝ */
.mods__header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.mods__title {
  margin: 0 0 .4rem 0;
  font-size: clamp(1.0rem, 1.1rem + 1.2vw, 2rem);
  color: var(--primary);
  font-weight: 800;
  letter-spacing: .2px;
}

.mods__subtitle {
  margin: 0 auto;
  max-width: 800px;
  color: #556;
  font-size: 1rem;
}

/* === GRID DOS QUADRANTES (4 por linha) === */
.mods__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr; /* 1 coluna mobile */
}

/* ≥ 640px → 2 por linha (tablet) */
@media (min-width: 640px) {
  .mods__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ≥ 1024px → 4 por linha (desktop) */
@media (min-width: 1024px) {
  .mods__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ╔══════════════════════════════════════════════════╗
   ║ CARTÕES COM BORDA AZUL E BRILHO SUAVE            ║
   ╚══════════════════════════════════════════════════╝ */
.mod__card {
  background: #fff;
  border: 1px solid rgba(0, 87, 183, 0.25); /* 🔵 Azul sutil */
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: 
    transform .18s ease, 
    box-shadow .25s ease, 
    border-color .25s ease, 
    filter .25s ease;
}

/* ✨ Brilho ao passar o mouse */
.mod__card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 87, 183, 0.75);
  box-shadow: 0 8px 24px rgba(0, 87, 183, 0.25), 0 0 10px rgba(0, 136, 255, 0.15);
  filter: brightness(1.02);
}

/* Ícone com tom azul suave */
.mod__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f0f7ff, #ffffff);
  border: 1px solid #d8e6ff;
  margin-bottom: .65rem;
  font-size: 1.25rem;
  color: var(--primary);
}

.mod__title {
  margin: 0 0 .35rem 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .2px;
}

.mod__desc {
  margin: 0 0 .5rem 0;
  color: #4a5568;
  font-size: .98rem;
  line-height: 1.5;
}

.mod__bullets {
  margin: .25rem 0 0 0;
  padding-left: 1.1rem;
  color: #334155;
  font-size: .94rem;
}

.mod__bullets li { margin: .25rem 0; }

.mods__footer {
  margin-top: 1.5rem;
  display: flex;
  gap: .75rem;
  justify-content: center;
}

/* Container mais largo em telas grandes */
@media (min-width: 1280px) {
  .container { max-width: 1280px; }
}
@media (min-width: 1536px) {
  .container { max-width: 1440px; }
}
