/* August home conversion: source hero CSS 2835–3510; native VC/Woodmart grid counts
 * and gaps from 3584–6421. Scoped fallback layout, not a pixel-match acceptance.
 * Native horizontal scrolling replaces archived carousel scripts. Fonts belong to child theme. */
.malare-source-home { --malare-home-gap: 20px; }
.malare-source-home * { box-sizing: border-box; }
.malare-source-home > section, .malare-source-home > div { margin-bottom: 30px; }
.malare-source-home img { display: block; max-width: 100%; height: auto; }
.malare-source-home a:focus-visible, .malare-source-home [tabindex]:focus-visible { outline: 2px solid #244494; outline-offset: 4px; }
.malare-source-home .malare-home-title { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.malare-source-home .malare-home-title h2 { margin: 0; }
.malare-source-home .malare-home-title > a { flex-shrink: 0; }
.malare-source-home .malare-home-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, .98fr); gap: 16px; }
.malare-source-home .malare-home-hero__main { position: relative; aspect-ratio: 1100 / 576; border-radius: 10px; overflow: hidden; }
.malare-source-home .malare-home-hero__photo { position: absolute; inset: 0; }
.malare-source-home .malare-home-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.malare-source-home .malare-home-hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,19,26,.76) 0%, rgba(12,19,26,.58) 42%, rgba(12,19,26,.24) 68%, rgba(12,19,26,.06) 100%); }
.malare-source-home .malare-home-hero__content { position: relative; z-index: 1; padding: 34px 24px 24px 42px; color: #fff; }
.malare-source-home .malare-home-hero h1 { margin: 0 0 22px; color: #fff; font-size: 46px; line-height: 1.06; text-transform: uppercase; letter-spacing: -.018em; text-shadow: 0 2px 8px rgba(0,0,0,.56), 0 6px 22px rgba(0,0,0,.42); }
.malare-source-home .malare-home-hero h1 span { display: block; font-weight: 600; }
.malare-source-home .malare-home-hero h1 span + span { font-weight: 400; }
.malare-source-home .malare-home-hero__content > p { max-width: 660px; margin: 0 0 16px; color: #fff; font-size: 20px; line-height: 1.34; font-weight: 500; text-shadow: 0 2px 7px rgba(0,0,0,.56); }
.malare-source-home .malare-home-hero__buttons { display: flex; flex-direction: column; max-width: 260px; gap: 12px; margin-top: 24px; }
.malare-source-home .malare-home-hero__buttons button { min-height: 48px; padding: 13px 18px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(to right,#244494,#3057b8 50%,#335fbb); font-size: 14.5px; font-weight: 500; text-transform: uppercase; cursor: not-allowed; opacity: .7; }
.malare-source-home .malare-home-hero__content small { display: block; margin-top: 8px; }
/* The source rating iframe is replaced by a visible link, without an empty fixed-size badge. */
.malare-source-home .malare-home-hero__rating { display: inline-block; margin-top: 16px; color: #fff; text-decoration: underline; }
.malare-source-home .malare-home-hero__promos { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.malare-source-home .malare-home-hero__promos > div { border-radius: 10px; overflow: hidden; background: #eef1f4; }
.malare-source-home .malare-home-hero__promos img { width: 100%; height: 100%; object-fit: cover; }
.malare-source-home .malare-home-banners { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.malare-source-home .malare-home-banners img { width: 100%; }
.malare-source-home .malare-home-categories { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 20px; }
.malare-source-home .malare-home-categories > a { grid-column: span 2; text-align: center; }
.malare-source-home .malare-home-categories > a:nth-child(-n+4) { grid-column: span 3; }
.malare-source-home .malare-home-categories img { width: 100%; }
.malare-source-home .malare-home-categories span { display: block; margin-top: 10px; }
.malare-source-home .malare-home-product-targets { padding-left: 20px; }
.malare-source-home .malare-home-product-targets li { margin-bottom: 8px; }
.malare-source-home .malare-home-pending { margin-bottom: 12px; }
.malare-source-home .malare-home-multitech { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,3fr); align-items: center; gap: 20px; }
.malare-source-home .malare-home-multitech > img { width: 100%; max-width: 300px; margin-inline: auto; }
.malare-source-home .malare-home-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 12px; }
.malare-source-home .malare-home-scroll > * { min-width: 0; margin: 0; scroll-snap-align: start; }
.malare-source-home .malare-home-scroll img { width: 100%; }
.malare-source-home .malare-home-articles h3 { margin: 12px 0; }
.malare-source-home .malare-home-articles p { margin: 8px 0; }
.malare-source-home .malare-home-partners { display: grid; grid-template-rows: repeat(2,auto); grid-auto-flow: column; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; align-items: center; }
.malare-source-home .malare-home-partners img { width: 100%; }
.malare-source-home .malare-home-production { gap: 6px; grid-auto-columns: calc((100% - 12px) / 3); }
.malare-source-home .malare-home-evidence { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 20px; }
.malare-source-home .malare-home-statistics dl { display: grid; grid-template-rows: repeat(2,1fr); grid-auto-flow: column; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.malare-source-home .malare-home-statistics dl > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; text-align: center; }
.malare-source-home .malare-home-statistics dd { font-size: 52px; line-height: 62px; font-weight: 600; margin: 0; }
.malare-source-home .malare-home-certificates { grid-auto-columns: 25%; gap: 0; }
@media (max-width: 1024px) {
  .malare-source-home .malare-home-hero { grid-template-columns: 1fr; }
  .malare-source-home .malare-home-hero__promos { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .malare-source-home .malare-home-categories { grid-template-columns: repeat(6,minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .malare-source-home .malare-home-title { gap: 10px; }
  .malare-source-home .malare-home-title h2 { overflow-wrap: anywhere; }
  .malare-source-home .malare-home-hero__main { aspect-ratio: auto; }
  .malare-source-home .malare-home-hero__photo img { object-position: 74% center; }
  .malare-source-home .malare-home-hero__content { display: flex; flex-direction: column; align-items: flex-start; min-height: 520px; padding: 20px 18px; }
  .malare-source-home .malare-home-hero h1 { font-size: 25px; margin-bottom: 14px; }
  .malare-source-home .malare-home-hero__content > p { max-width: 310px; font-size: 15px; line-height: 1.3; }
  .malare-source-home .malare-home-hero__buttons { margin-top: auto; padding-top: 24px; width: 100%; max-width: 362px; gap: 10px; }
  .malare-source-home .malare-home-hero__buttons button { min-height: 46px; font-size: 13.2px; border-radius: 11px; }
  .malare-source-home .malare-home-hero__rating { display: none; }
  .malare-source-home .malare-home-hero__promos { grid-template-columns: 1fr; gap: 12px; }
  .malare-source-home .malare-home-banners, .malare-source-home .malare-home-statistics { display: none; }
  .malare-source-home .malare-home-categories { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 10px) / 1.5); gap: 10px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
  .malare-source-home .malare-home-categories > a, .malare-source-home .malare-home-categories > a:nth-child(-n+4) { grid-column: auto; scroll-snap-align: start; }
  .malare-source-home .malare-home-multitech { grid-template-columns: 1fr; }
  .malare-source-home .malare-home-scroll { grid-auto-columns: calc((100% - 10px) / 1.2); gap: 10px; }
  .malare-source-home .malare-home-partners { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .malare-source-home .malare-home-partners img:nth-child(1) { order: 1; }
  .malare-source-home .malare-home-partners img:nth-child(2) { order: 3; }
  .malare-source-home .malare-home-partners img:nth-child(3) { order: 5; }
  .malare-source-home .malare-home-partners img:nth-child(4) { order: 7; }
  .malare-source-home .malare-home-partners img:nth-child(5) { order: 2; }
  .malare-source-home .malare-home-partners img:nth-child(6) { order: 4; }
  .malare-source-home .malare-home-partners img:nth-child(7) { order: 6; }
  .malare-source-home .malare-home-partners img:nth-child(8) { order: 8; }
  .malare-source-home .malare-home-production { grid-auto-columns: calc((100% - 6px) / 1.5); gap: 6px; }
  .malare-source-home .malare-home-evidence { grid-template-columns: 1fr; }
  .malare-source-home .malare-home-certificates { grid-auto-columns: 40%; gap: 0; }
}
@media (max-width: 420px) {
  .malare-source-home .malare-home-hero__photo img { object-position: 76% center; }
  .malare-source-home .malare-home-hero__content { min-height: 500px; padding: 18px 16px; }
  .malare-source-home .malare-home-hero h1 { font-size: 24px; }
}
@media (max-width: 374px) {
  .malare-source-home .malare-home-hero__photo img { object-position: 78% center; }
  .malare-source-home .malare-home-hero__content { min-height: 490px; padding-inline: 14px; }
  .malare-source-home .malare-home-hero h1 { font-size: 22.5px; }
  .malare-source-home .malare-home-hero__content > p { font-size: 14px; }
}
