/* ============================================================
   HÒA CƯỜNG M&E — Phase 2: Design system, hero, trust strip, footer, maps
   Strategy: CSS-only enhancement of existing Flatsome DOM (safe, idempotent)
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS (CSS variables) — single source of truth
   ============================================================ */
:root {
  /* Primary palette (chốt 1 navy + 1 cam + 1 zalo) */
  --hc-navy:        #0d4d8c;
  --hc-navy-dark:   #093663;
  --hc-navy-light:  #1e6bb8;
  --hc-orange:      #ff6a00;
  --hc-orange-dark: #e25c00;
  --hc-orange-light:#ffa15a;
  --hc-zalo:        #0068ff;
  --hc-success:     #3d8b1f;

  /* Neutrals */
  --hc-white:   #ffffff;
  --hc-gray-50:  #f9fafb;
  --hc-gray-100: #f3f4f6;
  --hc-gray-200: #e5e7eb;
  --hc-gray-300: #d1d5db;
  --hc-gray-400: #9ca3af;
  --hc-gray-500: #6b7280;
  --hc-gray-700: #374151;
  --hc-gray-900: #111827;

  /* Spacing scale (4/8/16/24/32/48/64) */
  --hc-sp-1: 4px;
  --hc-sp-2: 8px;
  --hc-sp-3: 12px;
  --hc-sp-4: 16px;
  --hc-sp-6: 24px;
  --hc-sp-8: 32px;
  --hc-sp-12: 48px;
  --hc-sp-16: 64px;

  /* Radius scale */
  --hc-r-sm: 4px;
  --hc-r-md: 8px;
  --hc-r-lg: 12px;
  --hc-r-xl: 16px;
  --hc-r-full: 9999px;

  /* Shadow */
  --hc-sh-1: 0 1px 3px rgba(0,0,0,.08);
  --hc-sh-2: 0 4px 12px rgba(0,0,0,.10);
  --hc-sh-3: 0 8px 24px rgba(0,0,0,.15);
  --hc-sh-4: 0 16px 48px rgba(0,0,0,.20);

  /* Transition */
  --hc-tr-fast: 150ms ease;
  --hc-tr-base: 200ms ease;
  --hc-tr-slow: 300ms ease;
}

/* ============================================================
   2. TYPOGRAPHY HIERARCHY — clamp() để responsive trên mọi viewport
   Be Vietnam Pro (Google Fonts đã load từ theme cũ — không cần thêm)
   ============================================================ */
.hc-body h1, .single h1.entry-title, .page-title h1, body .page-title h1.entry-title.mb {
  font-size: clamp(1.75rem, 4vw, 2.5rem) !important; /* 28-40px */
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}
.hc-body h2, .section-title-normal span, .single h2 {
  font-size: clamp(1.375rem, 3vw, 1.75rem) !important; /* 22-28px */
  line-height: 1.3 !important;
  font-weight: 700 !important;
}
.hc-body h3 {
  font-size: clamp(1.125rem, 2vw, 1.375rem) !important; /* 18-22px */
  line-height: 1.4 !important;
  font-weight: 700 !important;
}
.hc-body, body, p, li, .entry-content {
  line-height: 1.65;
}
/* Body min 16px trên mobile (anti-zoom-on-focus iOS) */
@media (max-width: 549px) {
  body, input, textarea, select {
    font-size: 16px !important;
  }
  body .product-short-description p, body .single-product .product-short-description ul li {
    font-size: 16px !important;
  }
}

/* ============================================================
   3. TRUST STRIP — injected via hc-phase2.js after hero
   ============================================================ */
.hc-trust-strip {
  background: linear-gradient(180deg, var(--hc-white) 0%, var(--hc-gray-50) 100%);
  padding: var(--hc-sp-8) var(--hc-sp-4);
  border-bottom: 1px solid var(--hc-gray-200);
}
.hc-trust-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hc-sp-8);
}
@media (min-width: 768px) {
  .hc-trust-inner { grid-template-columns: 1.3fr 1fr; align-items: center; }
}
.hc-trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--hc-sp-4);
}
@media (max-width: 549px) {
  .hc-trust-stats { grid-template-columns: repeat(2, 1fr); gap: var(--hc-sp-3); }
}
.hc-stat {
  text-align: center;
  padding: var(--hc-sp-3);
}
.hc-stat-num {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--hc-navy);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: var(--hc-sp-1);
}
.hc-stat-label {
  font-size: 13px;
  color: var(--hc-gray-700);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
@media (max-width: 549px) {
  .hc-stat-label { font-size: 11px; letter-spacing: 0.3px; }
}

.hc-trust-brands {
  text-align: center;
}
.hc-trust-brands-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--hc-gray-500);
  margin-bottom: var(--hc-sp-3);
  font-weight: 600;
}
.hc-brands-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--hc-sp-3) var(--hc-sp-6);
  align-items: center;
}
.hc-brand-chip {
  font-family: "Barlow", "Be Vietnam Pro", sans-serif;
  font-weight: 700; font-size: 14px;
  padding: 8px 16px;
  background: var(--hc-white);
  border: 1px solid var(--hc-gray-200);
  border-radius: var(--hc-r-md);
  color: var(--hc-gray-700);
  letter-spacing: 0.5px;
  transition: all var(--hc-tr-base);
  box-shadow: var(--hc-sh-1);
  white-space: nowrap;
}
.hc-brand-chip:hover {
  border-color: var(--hc-navy);
  color: var(--hc-navy);
  transform: translateY(-2px);
  box-shadow: var(--hc-sh-2);
}

/* ============================================================
   4. HERO OVERLAY — statement + 2 CTA on top of existing slider
   Inject after first slider in homepage only
   ============================================================ */
.hc-hero-overlay {
  position: relative;
  background: linear-gradient(135deg, var(--hc-navy) 0%, var(--hc-navy-dark) 100%);
  color: var(--hc-white);
  padding: var(--hc-sp-12) var(--hc-sp-4);
  overflow: hidden;
}
.hc-hero-overlay::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M0 0L100 100M100 0L0 100' stroke='%23fff' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px;
  pointer-events: none;
}
.hc-hero-inner {
  max-width: 1100px; margin: 0 auto;
  position: relative; z-index: 2;
  text-align: center;
}
.hc-hero-overlay h1, .hc-hero-overlay .hc-hero-h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 var(--hc-sp-3);
  letter-spacing: -0.02em;
  color: var(--hc-white) !important;
}
.hc-hero-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255,255,255,.85);
  max-width: 720px; margin: 0 auto var(--hc-sp-6);
  line-height: 1.6;
}
.hc-hero-ctas {
  display: inline-flex; flex-wrap: wrap; gap: var(--hc-sp-3);
  justify-content: center;
}
.hc-btn {
  display: inline-flex; align-items: center; gap: var(--hc-sp-2);
  padding: 14px 28px;
  border-radius: var(--hc-r-md);
  font-weight: 700; font-size: 15px;
  text-decoration: none !important;
  transition: all var(--hc-tr-base);
  letter-spacing: 0.2px;
  border: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.hc-btn-primary {
  background: var(--hc-orange);
  color: var(--hc-white) !important;
}
.hc-btn-primary:hover {
  background: var(--hc-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,106,0,.4);
}
.hc-btn-outline {
  background: transparent;
  color: var(--hc-white) !important;
  border-color: rgba(255,255,255,.4);
}
.hc-btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--hc-white);
  transform: translateY(-2px);
}

/* ============================================================
   5. HEADER POLISH — refine existing Flatsome header
   ============================================================ */
.header-bottom {
  background: var(--hc-white) !important;
  border-top: 1px solid var(--hc-gray-200);
}
.header-main {
  background: var(--hc-white);
  border-bottom: 1px solid var(--hc-gray-100);
}
.stuck .header-main {
  box-shadow: var(--hc-sh-2) !important;
  transition: box-shadow var(--hc-tr-base);
}
/* Logo crisp */
#logo img {
  image-rendering: -webkit-optimize-contrast;
}
/* Hide nav UPPERCASE on desktop — keep readable */
.header-bottom .nav > li > a {
  text-transform: none !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px;
  color: var(--hc-gray-900) !important;
}
.header-bottom .nav > li > a:hover {
  color: var(--hc-navy) !important;
  background: transparent !important;
}
.header-bottom .nav > li.active > a {
  color: var(--hc-navy) !important;
  background: transparent !important;
  border-bottom: 2px solid var(--hc-orange);
}

/* Header hotline emphasize */
#header-contact li a, .header-contact li a {
  color: var(--hc-navy) !important;
  font-weight: 700 !important;
  font-size: 17px !important;
  letter-spacing: -0.3px;
}

/* ============================================================
   6. FOOTER REBUILD — 4-col VN-standard
   ============================================================ */
.footer-wrapper, .footer-1, .footer-2 {
  background: var(--hc-navy-dark) !important;
}
.footer-wrapper .row > .col,
.footer-1 .row > .col,
.footer-2 .row > .col {
  padding-top: var(--hc-sp-6) !important;
  padding-bottom: var(--hc-sp-3) !important;
}
.footer-wrapper h4, .footer-wrapper h3, .footer-section h4 {
  color: var(--hc-white) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--hc-sp-3) !important;
  padding-bottom: var(--hc-sp-2);
  border-bottom: 2px solid var(--hc-orange);
  display: inline-block;
}
.footer-wrapper, .footer-wrapper p, .footer-wrapper li, .footer-wrapper a {
  color: rgba(255,255,255,.78) !important;
}
.footer-wrapper a:hover {
  color: var(--hc-orange-light) !important;
}
.absolute-footer {
  background: var(--hc-navy) !important;
  border-top: 1px solid rgba(255,255,255,.1) !important;
  padding: var(--hc-sp-3) 0;
}
.absolute-footer.dark {
  color: rgba(255,255,255,.65) !important;
}
.absolute-footer .footer-nav a {
  color: rgba(255,255,255,.75) !important;
  font-size: 13px;
}

/* ============================================================
   7. BREADCRUMB POLISH
   ============================================================ */
.woocommerce-breadcrumb, .breadcrumbs {
  font-size: 13px !important;
  color: var(--hc-gray-500) !important;
  text-transform: none !important;
  font-weight: 500 !important;
  padding: var(--hc-sp-2) 0 !important;
  letter-spacing: 0 !important;
}
.woocommerce-breadcrumb a, .breadcrumbs a {
  color: var(--hc-gray-700) !important;
}
.woocommerce-breadcrumb a:hover, .breadcrumbs a:hover {
  color: var(--hc-navy) !important;
}

/* ============================================================
   8. GOOGLE MAPS WRAPPER — for /lien-he/ injection
   ============================================================ */
.hc-maps-section {
  padding: var(--hc-sp-8) var(--hc-sp-4);
  background: var(--hc-gray-50);
}
.hc-maps-inner {
  max-width: 1100px; margin: 0 auto;
}
.hc-maps-title {
  text-align: center;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--hc-navy);
  margin-bottom: var(--hc-sp-6);
}
.hc-maps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hc-sp-4);
}
@media (min-width: 768px) {
  .hc-maps-grid { grid-template-columns: 1fr 1fr; }
}
.hc-map-card {
  background: var(--hc-white);
  border-radius: var(--hc-r-lg);
  overflow: hidden;
  box-shadow: var(--hc-sh-2);
  border: 1px solid var(--hc-gray-200);
}
.hc-map-iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--hc-gray-100);
}
.hc-map-iframe-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}
.hc-map-info {
  padding: var(--hc-sp-4);
  border-top: 1px solid var(--hc-gray-100);
}
.hc-map-info h4 {
  font-size: 16px; font-weight: 700;
  color: var(--hc-navy);
  margin: 0 0 var(--hc-sp-2);
}
.hc-map-info p {
  font-size: 14px; color: var(--hc-gray-700);
  margin: 0 0 var(--hc-sp-1);
}
.hc-map-info a {
  color: var(--hc-orange);
  font-weight: 600;
  text-decoration: none;
}

/* ============================================================
   9. ANTI-FOOTPRINT cleanup — Disable Dancing Script if used
   ============================================================ */
.alt-font {
  font-family: "Barlow", "Be Vietnam Pro", sans-serif !important;
}
