/**
 * Hero section + phone mockup — cloned from demo.citgroup.vn/happycar
 */

/* Hero layout wrapper inside Elementor section */
.hc-hero-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hc-hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(229, 57, 53, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hc-hero-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hc-hero-section .elementor-container {
  max-width: 1200px;
  position: relative;
  z-index: 1;
  align-items: center;
}

/* Legacy grid (unused after native hero migration) */
.hc-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

/* Badge widget */
.hc-hero-section .elementor-element.hero-badge {
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin-bottom: 20px;
}

.hc-hero-section .elementor-element.hero-badge .elementor-heading-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hc-yellow-light);
  border: 1.5px solid var(--hc-yellow);
  color: var(--hc-yellow-dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
  line-height: 1.4;
}

/* Title widget */
.hc-hero-section .elementor-element.hero-title .elementor-heading-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--hc-text);
}

.hc-hero-section .elementor-element.hero-title .brand {
  color: var(--hc-red);
}

.hc-hero-section .elementor-element.hero-title .accent {
  color: var(--hc-yellow-dark);
}

/* Description widget */
.hc-hero-section .elementor-element.hero-desc {
  margin-bottom: 36px;
}

.hc-hero-section .elementor-element.hero-desc p {
  font-size: 1.1rem;
  color: var(--hc-text-muted);
  margin: 0;
  max-width: 480px;
}

/* Button row */
.hc-hero-section .elementor-element.hero-actions > .elementor-container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hc-hero-section .elementor-element.hero-actions > .elementor-container > .elementor-column {
  width: auto !important;
  flex: 0 0 auto;
}

.hc-hero-section .elementor-element.hc-hero-btn .elementor-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--hc-transition);
}

.hc-hero-section .elementor-element.hc-hero-btn-primary .elementor-button {
  background: var(--hc-red);
  color: #fff;
  box-shadow: 0 4px 16px rgba(229, 57, 53, 0.35);
}

.hc-hero-section .elementor-element.hc-hero-btn-primary .elementor-button:hover {
  background: var(--hc-red-dark);
  color: #fff;
  transform: translateY(-2px);
}

.hc-hero-section .elementor-element.hc-hero-btn-yellow .elementor-button {
  background: var(--hc-yellow);
  color: var(--hc-text);
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.35);
}

.hc-hero-section .elementor-element.hc-hero-btn-yellow .elementor-button:hover {
  background: var(--hc-yellow-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* Stats row */
.hc-hero-section .elementor-element.hero-stats > .elementor-container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.hc-hero-section .elementor-element.hero-stats > .elementor-container > .elementor-column {
  width: auto !important;
  flex: 0 0 auto;
}

.hc-hero-section .elementor-element.hero-stat-num .elementor-heading-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--hc-red);
  line-height: 1;
  margin: 0;
}

.hc-hero-section .elementor-element.hero-stat-label .elementor-heading-title {
  font-size: 0.8rem;
  color: var(--hc-text-muted);
  font-weight: 600;
  margin: 0;
}

.hc-hero-section .elementor-column.hero-stat-divider {
  border-left: 2px solid var(--hc-border);
  padding-left: 32px;
}

/* Legacy class names (HTML partial fallback) */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hc-yellow-light);
  border: 1.5px solid var(--hc-yellow);
  color: var(--hc-yellow-dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

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

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--hc-text);
}

.hero-title .brand {
  color: var(--hc-red);
}

.hero-title .accent {
  color: var(--hc-yellow-dark);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--hc-text-muted);
  margin: 0 0 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hc-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--hc-transition);
}

.hc-hero-btn-primary {
  background: var(--hc-red);
  color: #fff;
  box-shadow: 0 4px 16px rgba(229, 57, 53, 0.35);
}

.hc-hero-btn-primary:hover {
  background: var(--hc-red-dark);
  color: #fff;
  transform: translateY(-2px);
}

.hc-hero-btn-yellow {
  background: var(--hc-yellow);
  color: var(--hc-text);
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.35);
}

.hc-hero-btn-yellow:hover {
  background: var(--hc-yellow-dark);
  color: #fff;
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat-divider {
  border-left: 2px solid var(--hc-border);
  padding-left: 32px;
}

.hero-stat-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--hc-red);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--hc-text-muted);
  font-weight: 600;
}

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 560px;
}

.phone-mockup {
  position: relative;
  animation: hc-floatY 3s ease-in-out infinite;
}

@keyframes hc-floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.phone-frame {
  width: 260px;
  height: 520px;
  background: var(--hc-text);
  border-radius: 40px;
  border: 8px solid var(--hc-text);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(255, 255, 255, 0.1) inset;
  overflow: hidden;
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--hc-red) 0%, var(--hc-red-dark) 40%, #1a1a2e 100%);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
}

.phone-notch {
  width: 80px;
  height: 24px;
  background: var(--hc-text);
  border-radius: 0 0 16px 16px;
  margin: 0 auto 16px;
}

.phone-app-logo {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.phone-app-logo span {
  color: var(--hc-yellow);
}

.phone-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  margin-bottom: 20px;
}

.phone-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.phone-service-item {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  color: #fff;
}

.phone-service-item i {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 4px;
  color: var(--hc-yellow);
}

.phone-service-item span {
  font-size: 0.6rem;
}

.phone-map-preview {
  margin-top: 16px;
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  gap: 6px;
}

.float-badge {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: hc-floatBadge 4s ease-in-out infinite;
  white-space: nowrap;
}

.float-badge-1 { top: 60px; right: -40px; animation-delay: 0s; }
.float-badge-2 { bottom: 100px; left: -50px; animation-delay: 1.5s; }
.float-badge-3 { top: 200px; left: -60px; animation-delay: 0.8s; }

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

.float-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.float-badge-icon.red { background: var(--hc-red-light); color: var(--hc-red); }
.float-badge-icon.yellow { background: var(--hc-yellow-light); color: var(--hc-yellow-dark); }
.float-badge-icon.green { background: #e8f5e9; color: var(--hc-green); }

.float-badge-label {
  font-size: 0.68rem;
  color: var(--hc-text-muted);
  font-weight: 600;
}

.float-badge-value {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--hc-text);
}

@media (max-width: 1024px) {
  .hc-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hc-hero-section .hc-hero-visual-col {
    display: none;
  }

  .hc-hero-section .hc-hero-content-col {
    text-align: center;
  }

  .hc-hero-section .hc-hero-content-col .elementor-widget-heading,
  .hc-hero-section .hc-hero-content-col .elementor-widget-text-editor {
    text-align: center;
  }

  .hc-hero-section .elementor-element.hero-desc p {
    margin-inline: auto;
  }

  .hc-hero-section .elementor-element.hero-actions > .elementor-container,
  .hc-hero-section .elementor-element.hero-stats > .elementor-container {
    justify-content: center;
  }

  .hc-hero-section .elementor-column.hero-stat-divider {
    border-left: none;
    padding-left: 0;
  }

  .hero-visual {
    display: none;
  }

  .hero-desc {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .hero-stat-divider {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  .hc-hero-section .elementor-element.hero-actions > .elementor-container {
    flex-direction: column;
    align-items: stretch;
  }

  .hc-hero-section .elementor-element.hero-actions .elementor-button {
    width: 100%;
    justify-content: center;
  }

  .hc-hero-section .elementor-element.hero-stats > .elementor-container {
    gap: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hc-hero-btn {
    justify-content: center;
  }

  .hero-stats {
    gap: 20px;
  }
}
