/* ============================================
   CIVIC CMS BRASIL — Hero Premium
   ============================================ */

/* ---- Hero Base ---- */
.hero {
  position: relative;
  background: linear-gradient(145deg, #0c1a3a 0%, #0f2847 25%, #132e52 50%, #0e2240 75%, #091a33 100%);
  color: #ffffff;
  padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-16);
  overflow: hidden;
  min-height: 580px;
  display: flex;
  align-items: center;
}

/* ---- Background Effects ---- */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 15% 85%, rgba(37, 99, 235, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 600px 500px at 85% 15%, rgba(96, 165, 250, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 50% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  opacity: 0.6;
}

/* ---- Background Particles ---- */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: heroParticleFade 8s ease-in-out infinite;
}

.hero__particle--1 {
  width: 4px;
  height: 4px;
  background: rgba(96, 165, 250, 0.6);
  top: 20%;
  left: 10%;
  box-shadow: 0 0 12px 2px rgba(96, 165, 250, 0.3);
  animation-delay: 0s;
  animation-duration: 7s;
}

.hero__particle--2 {
  width: 3px;
  height: 3px;
  background: rgba(59, 130, 246, 0.5);
  top: 60%;
  left: 25%;
  box-shadow: 0 0 10px 2px rgba(59, 130, 246, 0.25);
  animation-delay: 2s;
  animation-duration: 9s;
}

.hero__particle--3 {
  width: 5px;
  height: 5px;
  background: rgba(147, 197, 253, 0.4);
  top: 35%;
  right: 20%;
  box-shadow: 0 0 14px 3px rgba(147, 197, 253, 0.2);
  animation-delay: 1s;
  animation-duration: 8s;
}

.hero__particle--4 {
  width: 3px;
  height: 3px;
  background: rgba(96, 165, 250, 0.5);
  top: 75%;
  right: 35%;
  box-shadow: 0 0 10px 2px rgba(96, 165, 250, 0.25);
  animation-delay: 3s;
  animation-duration: 10s;
}

.hero__particle--5 {
  width: 4px;
  height: 4px;
  background: rgba(59, 130, 246, 0.4);
  top: 15%;
  right: 10%;
  box-shadow: 0 0 12px 2px rgba(59, 130, 246, 0.2);
  animation-delay: 4s;
  animation-duration: 7.5s;
}

.hero__particle--6 {
  width: 6px;
  height: 6px;
  background: rgba(37, 99, 235, 0.25);
  bottom: 20%;
  left: 45%;
  box-shadow: 0 0 20px 4px rgba(37, 99, 235, 0.15);
  animation-delay: 1.5s;
  animation-duration: 11s;
}

@keyframes heroParticleFade {
  0%, 100% { opacity: 0; transform: translateY(0) scale(1); }
  50% { opacity: 1; transform: translateY(-20px) scale(1.5); }
}

/* ---- Container Grid ---- */
.hero__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: var(--space-10);
  align-items: center;
}

/* ---- Content ---- */
.hero__content {
  max-width: 600px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero__badge i {
  color: var(--civic-primary-300);
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: var(--font-extrabold);
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: var(--space-6);
  letter-spacing: var(--tracking-tight);
}

.hero__title span {
  background: linear-gradient(135deg, #60a5fa, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__text {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 540px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
}

.hero__trust-icon {
  width: 20px;
  text-align: center;
  color: var(--civic-primary-300);
}

/* ---- Visual / Image Area ---- */
.hero__visual {
  position: relative;
  width: 100%;
}

.hero__image-wrapper {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: visible;
  animation: heroImageReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-2xl);
  position: relative;
  z-index: 1;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.1),
    0 20px 40px rgba(0, 0, 0, 0.25),
    0 0 80px rgba(37, 99, 235, 0.15);
}

/* Blue glow behind image */
.hero__image-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.25) 0%, rgba(37, 99, 235, 0.08) 40%, transparent 70%);
  border-radius: var(--radius-2xl);
  z-index: 0;
  filter: blur(20px);
  animation: heroGlowPulse 4s ease-in-out infinite;
}

/* Glass overlay on image */
.hero__image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  z-index: 2;
  pointer-events: none;
}

@keyframes heroImageReveal {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

/* ---- Floating Cards (Dashboard Style) ---- */
.hero__floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.25),
    0 0 20px rgba(37, 99, 235, 0.1);
  animation: heroFloat 5s ease-in-out infinite;
}

.hero__floating-card i {
  font-size: 0.875rem;
  color: var(--civic-primary-300);
}

.hero__floating-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-left: var(--space-1);
  flex-shrink: 0;
}

.hero__floating-dot--green {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.hero__floating-dot--blue {
  background: #3b82f6;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.5);
}

/* Card positions */
.hero__floating-card--1 {
  top: 8%;
  right: -5%;
  animation-delay: 0s;
}

.hero__floating-card--2 {
  top: 38%;
  left: -8%;
  animation-delay: 1.2s;
}

.hero__floating-card--3 {
  bottom: 30%;
  right: -3%;
  animation-delay: 0.6s;
}

.hero__floating-card--4 {
  bottom: 8%;
  left: -5%;
  animation-delay: 1.8s;
}

.hero__floating-card--5 {
  top: 18%;
  left: 15%;
  animation-delay: 2.4s;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---- Hero Inner Pages ---- */
.hero--inner {
  padding-top: calc(var(--header-height) + var(--space-10));
  padding-bottom: var(--space-10);
  min-height: auto;
}

.hero--inner .hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

/* Hero image wrapper (inner pages) */
.hero__image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Inner Page Image ---- */
.hero--inner .hero__image {
  position: relative;
  width: 100%;
}

.hero--inner .hero__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-2xl);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.1),
    0 20px 40px rgba(0, 0, 0, 0.25),
    0 0 80px rgba(37, 99, 235, 0.15);
}

/* ---- Card Images (for other sections) ---- */
.card__image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card--link:hover .card__image img,
.card:hover .card__image img {
  transform: scale(1.05);
}

/* ---- Section with image ---- */
.section__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
}

.section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Two-column layout with image ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

.two-col__content {
  order: 1;
}

.two-col__image {
  order: 2;
}

.two-col--reverse .two-col__content {
  order: 2;
}

.two-col--reverse .two-col__image {
  order: 1;
}

/* ---- Print ---- */
@media print {
  .hero {
    background: none;
    color: #000;
    padding: 0;
    min-height: auto;
  }

  .hero::before,
  .hero::after,
  .hero__bg {
    display: none;
  }

  .hero__title {
    color: #000;
    font-size: 24pt;
  }

  .hero__title span {
    -webkit-text-fill-color: #000;
    color: #000;
  }

  .hero__text {
    color: #333;
  }

  .hero__actions,
  .hero__trust,
  .hero__badge,
  .hero__floating-card,
  .hero__image-glow {
    display: none;
  }

  .hero__container {
    display: block;
  }

  .hero__visual,
  .hero--inner .hero__image {
    margin-top: 1rem;
  }

  .hero--inner .hero__image img {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .hero__img {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ---- Banner / Hero Image Component (reutilizável) ---- */
.banner__image,
.hero__image-frame {
  width: 100%;
  overflow: hidden;
}

.banner__image img,
.hero__image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
