/* Hero trang chủ: gọn, chuyên nghiệp + thương hiệu Namthanghoa.com */

.hero.hero--compact .hero-grid {
  min-height: 0;
  padding: clamp(1.75rem, 4vw, 2.5rem) 0 clamp(2rem, 4vw, 2.75rem);
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  align-items: center;
}

.hero.hero--compact::before {
  width: 320px;
  height: 320px;
  right: -100px;
  top: 20px;
  opacity: 0.85;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.hero-brand--text-only {
  gap: 0;
}

.hero-brand--text-only .hero-brand__name {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.hero-brand--has-img {
  gap: 0.65rem;
  align-items: center;
}

.hero-brand__img {
  display: block;
  max-height: 34px;
  width: auto;
  max-width: min(160px, 42vw);
  height: auto;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.hero-brand--has-img .hero-brand__name {
  line-height: 1.2;
}

.hero-brand:focus-visible {
  outline: 2px solid var(--sky, #0e76bc);
  outline-offset: 3px;
  border-radius: 10px;
}

.hero-brand__mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--sky-2, #5eb3e0), var(--blue, #094d78));
  box-shadow: 0 8px 20px rgba(14, 118, 188, 0.32);
}

.hero-brand__name {
  font-size: clamp(0.88rem, 1.8vw, 1rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(92deg, var(--blue, #094d78) 0%, var(--sky, #0e76bc) 55%, var(--st-brand-deep, #073a5c) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-brand:hover .hero-brand__name {
  filter: brightness(1.08);
}

.hero.hero--compact .eyebrow {
  margin-bottom: 0.55rem;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 850;
}

.hero.hero--compact h1 {
  font-size: clamp(1.55rem, 3.6vw, 2.45rem);
  line-height: 1.14;
  letter-spacing: -0.045em;
  margin-bottom: 0.55rem;
  max-width: 20ch;
}

.hero.hero--compact .hero-copy p {
  font-size: clamp(0.875rem, 1.45vw, 1rem);
  line-height: 1.55;
  margin-bottom: 1rem;
  max-width: 38em;
}

.hero.hero--compact .cta {
  gap: 8px;
  margin-top: 0.15rem;
}

.hero.hero--compact .btn {
  min-height: 44px;
  padding: 0 1.05rem;
  font-size: 0.875rem;
  border-radius: 12px;
}

.hero.hero--compact .trust {
  margin-top: 1.1rem;
  gap: 8px;
  max-width: 100%;
}

.hero.hero--compact .trust div {
  padding: 10px 12px;
  border-radius: 12px;
}

.hero.hero--compact .trust b {
  font-size: 0.9rem;
}

.hero.hero--compact .trust span {
  font-size: 11px;
  line-height: 1.35;
}

.hero.hero--compact .hero-visual {
  position: relative;
}

.hero.hero--compact .hero-visual .main-img {
  height: min(320px, 38vw);
  border-radius: 20px;
  border-width: 5px;
}

.hero.hero--compact .float {
  padding: 10px 12px;
  border-radius: 14px;
}

.hero.hero--compact .float strong {
  font-size: 0.88rem;
}

.hero.hero--compact .float span {
  font-size: 11px;
}

.hero.hero--compact .float.price b {
  font-size: 1.25rem;
  margin-top: 2px;
}

.hero.hero--compact .float.price {
  left: -12px;
  bottom: 18px;
}

.hero.hero--compact .float.server {
  right: -8px;
  top: 22px;
}

/* Dấu ấn domain trên ảnh (tinh tế) */
.hero.hero--compact .hero-visual[data-brand]::after {
  content: attr(data-brand);
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: rgba(0, 29, 61, 0.36);
  pointer-events: none;
  user-select: none;
}

.hero.hero--compact + .quick-cats {
  margin-top: -28px;
}

@media (max-width: 1060px) {
  .hero.hero--compact .hero-grid {
    padding: 1.5rem 0 2rem;
    grid-template-columns: 1fr;
  }

  .hero.hero--compact .hero-copy {
    order: 1;
  }

  .hero.hero--compact .hero-visual {
    order: 2;
  }

  .hero.hero--compact .hero-visual .main-img {
    height: auto;
    max-height: 320px;
    aspect-ratio: 4 / 3;
  }

  .hero.hero--compact .float {
    position: static;
    margin-top: 8px;
    display: inline-block;
    margin-right: 8px;
  }

  .hero.hero--compact .hero-visual[data-brand]::after {
    right: 10px;
    bottom: 8px;
    font-size: 9px;
  }

  .hero.hero--compact + .quick-cats {
    margin-top: 0;
    padding-top: 12px;
  }
}

@media (max-width: 680px) {
  .hero.hero--compact h1 {
    max-width: none;
    font-size: 1.45rem;
  }

  .hero.hero--compact .trust {
    grid-template-columns: 1fr;
  }
}
