/* css/hero.css */

.hero-main {
  min-height: 100vh;
  background: linear-gradient(90deg, #2294A0 0%, #1B7A84 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 140px; /* offset for fixed header (~5px stripe + ~53px topbar + 80px nav) */
}

/* Abstract SVG Pattern Overlay via pseudo-element */
.hero-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="circles" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="40" fill="none" stroke="%23ffffff" stroke-width="2"/></pattern></defs><rect width="100%" height="100%" fill="url(%23circles)"/></svg>');
  opacity: 0.05;
  z-index: 1;
}

.hero-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2; /* above pattern */
  padding-top: 40px;
  padding-bottom: 60px; /* space between content and stats bar */
}

.hero-content {
  width: 55%;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero-content h1 {
  color: var(--color-bg-white);
  margin-bottom: 24px;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-bg-white);
  font-size: 14px;
  font-weight: 500;
}

.hero-badge i {
  color: var(--color-accent);
}

.hero-image-col {
  width: 45%;
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.hero-image-wrapper img,
.hero-main-image {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

/* Offset Border Effect */
.hero-image-col::after {
  content: '';
  position: absolute;
  top: 20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--color-accent);
  border-radius: var(--radius-lg);
  z-index: 1;
}

.floating-card {
  position: absolute;
  bottom: 20px;
  left: -20px;
  background: var(--color-bg-white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}

.floating-card .circle-check {
  width: 32px;
  height: 32px;
  background: rgba(39, 174, 96, 0.1);
  color: var(--color-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-card span {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-dark);
}

/* --- Hero Stats Bar --- */
.hero-stats-bar {
  position: relative;
  margin-top: auto; /* push to bottom in flex column container */
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  padding: 32px 0;
  z-index: 2;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.hero-stat-item {
  color: var(--color-bg-white);
}

.hero-stat-item i {
  color: var(--color-accent);
  font-size: 24px;
  margin-bottom: 12px;
}

.hero-stat-item .num {
  font-size: 32px;
  font-weight: 700;
  display: block;
  line-height: 1.2;
}

.hero-stat-item .label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}
