/* Homepage repair, 2026-10-30. Scoped so shared pages keep their current CSS. */
.ag-home .home-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.ag-home .home-mini-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(6, 26, 47, .07);
  transition: border-color .2s, box-shadow .2s;
}
.ag-home .home-mini-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 6 / 5;
  object-fit: contain;
  background: #eef5fa;
}
.ag-home .home-mini-card strong { padding: 18px; line-height: 1.4; }
.ag-home .home-mini-card:hover { border-color: var(--orange); box-shadow: 0 10px 24px rgba(6,26,47,.15); }
.ag-home a:focus-visible, .ag-home button:focus-visible { outline: 3px solid #c97b17; outline-offset: 4px; }
.ag-home .home-category-action { text-align: center; margin-top: 28px; }
.ag-home .hero-content { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
.ag-home .hero-content > *, .ag-home .split > *, .ag-home .region-box > *, .ag-home .footer-grid > *, .ag-home .contact-strip > * { min-width: 0; }
.ag-home .top-bar, .ag-home footer, .ag-home .contact-strip { overflow-wrap: anywhere; }
.ag-home input, .ag-home textarea { min-width: 0; max-width: 100%; }
.ag-home .hero-logo-badge { margin-bottom: 0; }
.ag-home .countries span {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  padding: 9px 13px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 800;
}
/* Explicit section backgrounds do not change when sections are reordered. */
.ag-home .section { background: #fff !important; }
.ag-home .section.gray { background: var(--gray) !important; }
.ag-home .section.blue-light { background: linear-gradient(135deg,#eef5fa,#dfeef7) !important; }
@media (max-width: 1100px) {
  .ag-home .nav { flex-wrap: wrap; }
  .ag-home .nav nav { flex-basis: 100%; }
  .ag-home nav ul { display: flex; flex-wrap: wrap; gap: 10px 20px; }
  .ag-home .home-mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 950px) {
  .ag-home .hero-content { grid-template-columns: minmax(0, 1fr); }
  .ag-home .home-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-home header { position: static; }
  .ag-home .hero { padding: 48px 20px; }
}
@media (max-width: 620px) {
  .ag-home .home-mini-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ag-home .home-mini-card img { max-height: 250px; }
  .ag-home .nav { gap: 16px; }
  .ag-home .logo { min-width: 0; }
  .ag-home .site-logo-img { width: 115px; height: auto; }
  .ag-home .logo-main-text { font-size: 20px; }
  .ag-home nav ul { gap: 10px 16px; font-size: 14px; }
  .ag-home nav ul a { display: inline-block; padding: 8px 0; }
  .ag-home nav ul .btn { padding: 8px 14px; }
  .ag-home .section { padding: 48px 20px; }
  .ag-home .rfq-card, .ag-home .region-box { padding: 22px; }
  .ag-home .hero-actions { gap: 12px; }
  .ag-home .hero-actions > a { width: 100%; text-align: center; justify-content: center; }
  .ag-home .hero h1 { font-size: clamp(28px, 8vw, 34px); }
  .ag-home .hero p { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ag-home *, .ag-home *::before, .ag-home *::after { transition: none !important; }
}
