/* ============================================================
   Honda — Layout
   Grid systems, header, footer, page structure
   ============================================================ */

/* ── Vehicle Grid ─────────────────────────────────────────── */
.vf-vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}
@media (min-width: 1024px) {
  .vf-vehicle-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 479px) {
  .vf-vehicle-grid { grid-template-columns: 1fr; }
}

/* ── 2-column content + sidebar ──────────────────────────── */
.vf-content-sidebar {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-10);
  align-items: start;
}
@media (max-width: 1023px) {
  .vf-content-sidebar {
    grid-template-columns: 1fr;
  }
  .vf-content-sidebar .vf-sidebar {
    order: -1; /* Sidebar lên trên trên mobile */
  }
}

/* ── Sticky sidebar ───────────────────────────────────────── */
.vf-sidebar--sticky {
  position: sticky;
  top: calc(var(--space-16) + 20px); /* chiều cao specs bar + offset */
}

/* ── Counter strip ────────────────────────────────────────── */
.vf-counter-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
@media (max-width: 639px) {
  .vf-counter-strip { grid-template-columns: repeat(2, 1fr); }
}
.vf-counter-strip__item {
  background: var(--color-surface);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.vf-counter-strip__value {
  font-family: var(--font-mono);
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  color: var(--color-brand-primary);
  line-height: 1;
}
.vf-counter-strip__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

/* ── Why Us grid ─────────────────────────────────────────── */
.vf-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .vf-why-grid { grid-template-columns: repeat(4, 1fr); }
}
.vf-why-item {
  text-align: center;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.vf-why-item:hover {
  box-shadow: none;
  transform: translateY(-2px);
}
.vf-why-item__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  background: var(--color-brand-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-primary);
}
.vf-why-item__title {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}
.vf-why-item__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ── Logo thương hiệu ─────────────────────────────────────────
   Ảnh lấy từ Customizer > Site Identity qua honda_site_logo() (functions/cro.php),
   KHÔNG hardcode file như trước. Kích thước đặt ở đây để mọi ảnh logo (bất kể tỉ lệ)
   đều vừa khung. */
.vf-logo { display: block; height: auto; }
.vf-landing-header__logo .vf-logo { height: 36px; width: auto; }

html { scroll-padding-top: calc(80px + var(--wp-admin--admin-bar--height, 0px) + var(--space-4)); }
@media (max-width: 767px) {
  html { scroll-padding-top: calc(64px + var(--wp-admin--admin-bar--height, 0px) + var(--space-4)); }
}
