/**
 * Happy Go — Design tokens cloned from demo.citgroup.vn/happycar
 */

:root {
  --hc-red: #E53935;
  --hc-red-dark: #B71C1C;
  --hc-red-light: #FFEBEE;
  --hc-yellow: #FFC107;
  --hc-yellow-dark: #F57F17;
  --hc-yellow-light: #FFF8E1;
  --hc-green: #43A047;
  --hc-purple: #7B1FA2;
  --hc-blue: #1565C0;
  --hc-white: #FFFFFF;
  --hc-bg: #F9F9F9;
  --hc-bg-alt: #FFF5F5;
  --hc-text: #1A1A2E;
  --hc-text-muted: #666680;
  --hc-border: #F0E0E0;
  --hc-shadow: 0 4px 24px rgba(229, 57, 53, 0.10);
  --hc-shadow-card: 0 2px 16px rgba(0, 0, 0, 0.08);
  --hc-radius: 16px;
  --hc-radius-sm: 8px;
  --hc-radius-lg: 24px;
  --hc-font: 'Be Vietnam Pro', 'Nunito', sans-serif;
  --hc-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --hc-container: 1200px;
}

/* Base overrides for Elementor pages */
body.happycar-theme {
  font-family: var(--hc-font);
  background: var(--hc-bg);
  color: var(--hc-text);
  line-height: 1.65;
}

.happycar-theme .elementor-widget-heading .elementor-heading-title {
  font-family: var(--hc-font);
}

.happycar-theme .elementor-widget-button .elementor-button {
  border-radius: 100px;
  font-weight: 700;
  padding: 14px 28px;
}

.happycar-theme .elementor-widget-icon-box .elementor-icon-box-icon {
  color: #E53935;
}

.happycar-theme .elementor-widget-testimonial .elementor-testimonial {
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  padding: 24px;
  box-shadow: var(--hc-shadow-card);
}

.happycar-theme .elementor-widget-accordion .elementor-tab-title {
  font-weight: 700;
  border-radius: var(--hc-radius-sm);
}

.happycar-theme .elementor-widget-tabs .elementor-tab-title {
  font-weight: 700;
}

/* Utility classes — dùng trong Elementor (CSS class field) */
.hc-container {
  max-width: var(--hc-container);
  margin-inline: auto;
  padding-inline: 24px;
}

.hc-section {
  padding-block: 80px;
}

.hc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hc-red-light);
  color: var(--hc-red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.hc-section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--hc-text);
}

.hc-section-desc {
  font-size: 1.05rem;
  color: var(--hc-text-muted);
  max-width: 560px;
}

.hc-text-red { color: var(--hc-red); }
.hc-text-yellow { color: var(--hc-yellow-dark); }
.hc-text-center { text-align: center; }

/* Buttons */
.hc-btn {
  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);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.hc-btn-primary {
  background: var(--hc-red);
  color: var(--hc-white);
  box-shadow: 0 4px 16px rgba(229, 57, 53, 0.35);
}

.hc-btn-primary:hover {
  background: var(--hc-red-dark);
  transform: translateY(-2px);
  color: var(--hc-white);
}

.hc-btn-yellow {
  background: var(--hc-yellow);
  color: var(--hc-text);
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.35);
}

.hc-btn-outline {
  border: 2px solid var(--hc-red);
  color: var(--hc-red);
  background: transparent;
}

.hc-btn-outline:hover {
  background: var(--hc-red);
  color: var(--hc-white);
}

/* Service card */
.hc-service-card {
  background: var(--hc-white);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  padding: 28px;
  box-shadow: var(--hc-shadow-card);
  transition: var(--hc-transition);
}

.hc-service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hc-shadow);
  border-color: var(--hc-red);
}

.hc-service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--hc-radius-sm);
  background: var(--hc-red-light);
  color: var(--hc-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  transition: var(--hc-transition);
}

.hc-service-card:hover .hc-service-icon {
  background: var(--hc-red);
  color: var(--hc-white);
  transform: scale(1.1);
}

/* Stats section background */
.hc-stats-bg {
  background: linear-gradient(135deg, var(--hc-red) 0%, var(--hc-red-dark) 100%);
  color: var(--hc-white);
}

/* Gradient sections */
.hc-gradient-bg {
  background: linear-gradient(135deg, var(--hc-bg-alt), var(--hc-yellow-light));
}

/* Hello Elementor header — Happy Go branding */
.happycar-theme .site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid var(--hc-border);
}

.happycar-theme .site-title a {
  color: var(--hc-red) !important;
  font-weight: 900;
  font-size: 1.35rem;
}

.happycar-theme .site-navigation a {
  font-weight: 600;
  color: var(--hc-text);
  border-radius: 100px;
  padding: 8px 14px;
  transition: var(--hc-transition);
}

.happycar-theme .site-navigation a:hover,
.happycar-theme .site-navigation .current-menu-item > a {
  color: var(--hc-red);
  background: var(--hc-red-light);
}

.happycar-theme .site-footer {
  background: var(--hc-text);
  color: rgba(255, 255, 255, 0.75);
}

.happycar-theme .site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.happycar-theme .site-footer a:hover {
  color: var(--hc-yellow);
}

/* FAQ accordion (Elementor toggle widget override) */
.happycar-theme .elementor-toggle .elementor-tab-title {
  border-radius: var(--hc-radius-sm);
  font-weight: 700;
}

/* Breadcrumb */
.hc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--hc-text-muted);
  margin-bottom: 32px;
}

.hc-breadcrumb a:hover {
  color: var(--hc-red);
}

/* Animation — clone souce_code_mau.html (chỉ ẩn khi JS đã load) */
html.hc-js [data-animate]:not(.animated) {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html.hc-js [data-animate="fade-left"]:not(.animated) { transform: translateX(-32px); }
html.hc-js [data-animate="fade-right"]:not(.animated) { transform: translateX(32px); }
html.hc-js [data-animate="fade-up"]:not(.animated) { transform: translateY(32px); }
html.hc-js [data-animate].animated { opacity: 1; transform: none; }

[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="150"] { transition-delay: 0.15s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="250"] { transition-delay: 0.25s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="350"] { transition-delay: 0.35s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="450"] { transition-delay: 0.45s; }

/* Animation hooks (legacy) */
[data-hc-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-hc-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
