/*
 * home.desktop.css - Storefront Home Page (desktop viewport >=1024px)
 * Scope: home - class prefix: h-
 * Loaded via: media="(min-width:1024px)"
 * Self-contained: does not inherit home.mobile.css
 */

/* Page wrapper */
.h-main {
  background: #F4F5F7;
  padding-bottom: 8px;
}

/* Container */
.h-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Shared buttons */
.h-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-weight: 700;
  border-radius: var(--radius-lg);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.h-btn--lg  { height: 52px; padding: 14px 26px; font-size: 15px; gap: 10px; }
.h-btn--xl  { height: 58px; padding: 18px 32px; font-size: 16px; gap: 10px; }
.h-btn--full { width: 100%; }

.h-btn--accent {
  background: var(--color-accent);
  color: #1F2937;
  border-color: var(--color-accent);
  box-shadow: 0 1px 2px rgba(245,158,11,.2), 0 4px 12px rgba(245,158,11,.25);
}
.h-btn--accent:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); }

.h-btn--zalo {
  background: var(--color-zalo);
  color: #fff;
  border-color: var(--color-zalo);
}
.h-btn--zalo:hover { background: #0055cc; }

/* Shared section header */
.h-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.h-section-header--center {
  text-align: center;
  justify-content: center;
}
.h-section-header--center > div {
  flex: 1;
}
.h-section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.6px;
  margin: 0;
  line-height: 1.2;
}
.h-section-sub {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-top: 6px;
  margin-bottom: 0;
  line-height: 1.5;
}
.h-section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.h-section-link:hover { text-decoration: underline; }

/* ── Hero (Commerce Product Hero) ──────────────────────────────────── */
.h-hero {
  background: #FFFFFF;
  padding: 40px 0 44px;
  position: relative;
  overflow: hidden;
}

.h-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 52%) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  max-width: 1200px;
}

.h-hero__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Eyebrow */
.h-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: #FFFBEB;
  border: 1px solid #FDE7B0;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  color: #92400E;
  margin-bottom: 22px;
  width: fit-content;
}

/* Title */
.h-hero__title {
  font-size: 50px;
  font-weight: 800;
  color: #10212B;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin: 0 0 13px;
}
.h-hero__title-em {
  color: #C8102E;
}

/* Lede */
.h-hero__lede {
  font-size: 16px;
  color: #5B6673;
  line-height: 1.55;
  max-width: 580px;
  margin: 0 0 18px;
}

/* Primary + secondary actions */
.h-hero__actions {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.h-hero__action {
  height: 52px;
  padding: 0 26px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 14px;
}
/* CTA chính — điểm đỏ duy nhất của nút */
.h-hero__action--call {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 1px 2px rgba(200,16,46,.2), 0 8px 22px rgba(200,16,46,.28);
}
.h-hero__action--call:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

/* Trust row */
.h-hero__trust {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.h-hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #5B6673;
}
.h-hero__trust-item strong {
  color: #10212B;
}

/* Aside — product gallery */
.h-hero__aside {
  min-width: 0;
  position: relative;
}
/* khối nền navy mờ tạo chiều sâu sau ảnh lớn */
.h-hero__aside::before {
  content: "";
  position: absolute;
  top: -36px;
  right: -36px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(19,35,45,.06) 0%, rgba(19,35,45,0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.h-hero__gallery {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
  margin-left: auto;
}

.h-hero__gallery-main {
  display: block;
  background: #FFFFFF;
  border: 1px solid #E8EDF2;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(16,33,43,.08);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.h-hero__gallery-main:hover {
  box-shadow: 0 22px 60px rgba(16,33,43,.12);
}
.h-hero__gallery-main img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.h-hero__gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.h-hero__gallery-thumb {
  display: block;
  background: #FFFFFF;
  border: 1px solid #E8EDF2;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(16,33,43,.05);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.h-hero__gallery-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(16,33,43,.10);
  border-color: #D8E0E8;
}
.h-hero__gallery-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Gallery interactive states */
.h-hero__gallery-main img {
  transition: opacity .35s ease;
}
.h-hero__gallery-main.is-fading img {
  opacity: 0;
}
.h-hero__gallery-thumb {
  cursor: pointer;
}
.h-hero__gallery-thumb.is-active {
  border-color: #C8102E;
  box-shadow: 0 0 0 2px rgba(200,16,46,.18);
}


/* Industries */
.h-industries {
  background: transparent;
  padding: 44px 0 24px;
}

.h-industries__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.h-industry-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: all var(--transition);
}
.h-industry-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow);
}

.h-industry-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.h-industry-card__body { flex: 1; min-width: 0; }
.h-industry-card__label {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}
.h-industry-card__desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
  line-height: 1.5;
  display: block;
}
.h-industry-card__link {
  display: inline-flex;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  align-items: center;
  gap: 4px;
}

/* Featured products */
.h-products {
  background: transparent;
  padding: 0 0 24px;
}

.h-products__tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.h-products__tabs::-webkit-scrollbar { display: none; }

.h-products__tab {
  padding: 8px 14px;
  height: auto;
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}
.h-products__tab.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.h-products__tab:hover:not(.is-active) { border-color: var(--color-primary); color: var(--color-primary); }

.h-products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.h-products__empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--color-text-muted, #6b7280);
  font-size: 14px;
  margin: 0;
}

/* Process */
.h-process {
  background: transparent;
  padding: 0 0 24px;
  position: relative;
}

.h-process .h-container {
  background: transparent;
  border: none;
  padding-top: 40px;
  padding-bottom: 40px;
}

.h-process__bg-dots {
  display: none;
}

.h-process__header {
  text-align: center;
  margin-bottom: 40px;
}

.h-process__eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.h-process__title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin: 0;
  color: var(--color-text);
}

.h-process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

/* Process connector line - hidden (higher specificity avoids !important) */
.h-process__grid .h-process__line { display: none; }

.h-process__step {
  display: block;
  text-align: center;
  padding: 20px 12px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.h-process__step-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FDE8EC;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  margin: 0 auto 14px;
}
.h-process__step-icon svg { color: var(--color-primary); }

.h-process__step-label {
  font-size: 11px;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 1.5px;
}

.h-process__step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin: 6px 0 0;
  line-height: 1.3;
}

.h-process__step-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 8px 0 0;
  line-height: 1.55;
}

/* Why us */
.h-why {
  background: transparent;
  padding: 0 0 24px;
}

.h-why .h-container {
  background: transparent;
  border: none;
  padding-top: 40px;
  padding-bottom: 40px;
}

.h-why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 0;
}

.h-why-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.h-why-card__bg {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.h-why-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
}

.h-why-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
  margin: 0;
}

.h-why-card__desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 8px;
  line-height: 1.6;
}

/* Stats row */
.h-stats {
  margin-top: 40px;
  padding: 32px 40px;
  background: linear-gradient(135deg, var(--color-bg-warm) 0%, #fff 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.h-stat {
  background: transparent;
  padding: 0;
  text-align: center;
}
.h-stat--sep {
  border-right: 1px solid var(--color-border);
}

.h-stat__n {
  font-size: 40px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -1.2px;
  line-height: 1;
}

.h-stat__l {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-top: 8px;
}

/* Big CTA */
.h-cta {
  background: transparent;
  padding: 0 0 24px;
  position: relative;
}

.h-cta__inner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-16);
  color: #fff;
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.h-cta__main {
  display: flex;
  flex-direction: column;
  position: relative;
}

.h-cta__deco {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.12);
  opacity: 0.15;
  pointer-events: none;
}
.h-cta__deco::after {
  content: '';
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
}

.h-cta__eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.h-cta__title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0;
  color: #fff;
}

.h-cta__lede {
  font-size: 15px;
  opacity: 0.9;
  margin: 12px 0 0;
  line-height: 1.6;
  max-width: 540px;
  color: #fff;
}

.h-cta__buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.h-cta__form {
  background: rgba(0,0,0,0.18);
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(8px);
}

.h-cta__form-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.h-cta__form input,
.h-cta__form textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  color: var(--color-text);
  background: #fff;
  box-sizing: border-box;
}
.h-cta__form textarea {
  height: auto;
  padding: 12px 14px;
  resize: none;
}

/* Blog */
.h-blog {
  background: transparent;
  padding: 0 0 32px;
}

.h-blog__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.h-blog-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.h-blog-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.h-blog-card__cover {
  width: 100%;
  height: 162px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: unset;
  border-radius: 8px;
  overflow: hidden;
}
.h-blog-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.h-blog-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
}
.h-blog-card__badge--primary { background: #FDE8EC; color: var(--color-primary); }
.h-blog-card__badge--accent  { background: #FEF3C7; color: #92400E; }
.h-blog-card__badge--info    { background: var(--color-info-bg); color: var(--color-info); }

.h-blog-card__body {
  padding: 20px;
  flex: 1;
}

.h-blog-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  margin: 10px 0 0;
}

/* FAQ */
.h-faq { background: transparent; padding: 0 0 24px; }
.h-faq__list { display: flex; flex-direction: column; gap: 12px; max-width: 880px; margin: 0 auto; }
.h-faq__item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.h-faq__item[open] { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.h-faq__q {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.45;
  color: var(--color-text);
  padding: 18px 52px 18px 22px;
  position: relative;
}
.h-faq__q::-webkit-details-marker { display: none; }
.h-faq__q::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  line-height: 1;
  color: var(--color-primary);
}
.h-faq__item[open] .h-faq__q::after { content: "\2212"; }
.h-faq__a { padding: 0 22px 20px; color: var(--color-text-muted); font-size: 15px; line-height: 1.65; }
.h-faq__a p { margin: 0; }
