/* Aimsale homepage option 3: full-bleed visual areas + wide, centered content.
   Written anew for the Aimsale MVC rebuild; does not use Readyplanet styles.
   Scope all layout rules to home so detail pages are unaffected. */
body.aimsale-home {
  --home-wide: 1400px;
  --home-reading: 880px;
  --home-gutter: clamp(18px, 3.2vw, 48px);
}
/* Banners and section backgrounds span the entire viewport. */
body.aimsale-home .site-hero-banner,
body.aimsale-home .site-header,
body.aimsale-home .intro-banner,
body.aimsale-home .products-section,
body.aimsale-home .ribbon-overview,
body.aimsale-home .ribbon-catalog,
body.aimsale-home .contact-banner,
body.aimsale-home .site-footer { width: 100%; max-width: none; }
body.aimsale-home .site-hero-banner > img { display:block; width:100%; height:auto; max-width:none; }
/* Keep the navigation readable and centered without restricting its background. */
body.aimsale-home .header-inside { width:100%; max-width: 1520px; margin-inline:auto; padding-inline:var(--home-gutter); }
/* Long introductory keyword line reads as supporting copy. */
body.aimsale-home .intro-banner > .content-wrap { max-width:var(--home-wide); padding-inline:var(--home-gutter); }
body.aimsale-home .intro-banner h1 { max-width:var(--home-reading); margin-inline:auto; text-align:center; }
/* Original red/product banner remains centered, never stretched to screen width. */
body.aimsale-home .hero.content-wrap { width:100%; max-width: 1280px; padding-inline:var(--home-gutter); margin-inline:auto; }
body.aimsale-home .hero img { display:block; width:100%; max-width:100%; height:auto; object-fit:contain; }
/* Wide content surfaces, constrained reading passages. */
body.aimsale-home .company-intro.content-wrap,
body.aimsale-home .products-section > .content-wrap,
body.aimsale-home .catalog.content-wrap,
body.aimsale-home .ribbon-overview > .content-wrap,
body.aimsale-home .ribbon-catalog > .content-wrap,
body.aimsale-home .contact-banner > .content-wrap,
body.aimsale-home .site-footer > .content-wrap {
  width:100%; max-width:var(--home-wide); margin-inline:auto;
  padding-left:var(--home-gutter); padding-right:var(--home-gutter);
}
body.aimsale-home .company-intro h2 { max-width:1040px; margin-inline:auto; }
body.aimsale-home .company-intro .lead { max-width:var(--home-reading); margin-inline:auto; }
body.aimsale-home .expertise { grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:clamp(24px,3.5vw,52px); }
body.aimsale-home .quality { width:100%; max-width:none; margin-inline:auto; }
body.aimsale-home .quality > p:not(.home-after-sale) { max-width:var(--home-reading); margin-left:auto; margin-right:auto; }
body.aimsale-home .quality-points { grid-template-columns:repeat(2,minmax(0,1fr)); }
body.aimsale-home .home-table-scroll { width:100%; max-width:100%; }
body.aimsale-home .home-info-table { width:100%; }
body.aimsale-home .products-section > .content-wrap > p,
body.aimsale-home .catalog.content-wrap > p,
body.aimsale-home .ribbon-catalog > .content-wrap > p { max-width:var(--home-reading); margin-left:auto; margin-right:auto; }
body.aimsale-home .product-highlights { grid-template-columns:repeat(3,minmax(0,1fr)); }
body.aimsale-home .catalog-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:clamp(13px,1.55vw,24px); }
body.aimsale-home .ribbon-intro { grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); }
/* Restore balanced columns on tablets, without a horizontal page scrollbar. */
@media (max-width:1020px) {
  body.aimsale-home .expertise { grid-template-columns:1fr 1fr; }
  body.aimsale-home .catalog-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:740px) {
  body.aimsale-home { --home-gutter:18px; }
  body.aimsale-home .hero.content-wrap { padding-inline:0; }
  body.aimsale-home .company-intro.content-wrap { padding-inline:var(--home-gutter); }
  body.aimsale-home .expertise,
  body.aimsale-home .quality-points,
  body.aimsale-home .ribbon-intro,
  body.aimsale-home .product-highlights { grid-template-columns:1fr; }
  body.aimsale-home .catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.aimsale-home .home-table-scroll { overflow-x:auto; }
  body.aimsale-home .home-info-table { min-width:610px; }
}

/* P7: the large visual directly before the company introduction spans the viewport, like the top hero. */
body.aimsale-home section.hero.content-wrap {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}
body.aimsale-home section.hero.content-wrap > img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
}
