.pattern-landing-section {
  padding: 10px 15px 55px;
  background: #fff;
  text-align: center;
}
.pattern-landing-intro {
  max-width: 760px;
  margin: 0 auto 55px;
}
.pattern-landing-title {
  margin: 0 0 5px;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #111;
  text-transform: uppercase;
}
.pattern-landing-note {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #111;
  text-transform: uppercase;
}
.pattern-landing-email {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: #111;
}

/* ---- Product grid: 4 columns at desktop, bigger (390px) images ---- */
.pattern-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 48px;
  align-items: stretch;
  width: 100%;
  max-width: 1500px;
  margin: 0px auto;
}
.pattern-product-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  min-width: 0;
}
.pattern-product-image-wrap {
  height: 390px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 34px;
}
.pattern-product-image {
  display: block;
  max-width: 100%;
  max-height: 390px;
  width: auto;
  height: auto;
  margin: 0 auto;
}
.pattern-product-title {
  margin: 0 0 5px;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  color: #111;
  text-transform: uppercase;
}
/* Targets both class names in use across pages so no HTML
   needs to change - some pages use "desc", some use "copy". */
.pattern-product-desc,
.pattern-product-copy {
  max-width: 360px;
  margin: 0 auto 20px;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 700;
  color: #111;
}
.pattern-product-button {
  display: inline-block;
  align-self: center;
  margin-top: auto;
  min-width: 132px;
  padding: 13px 22px 12px;
  background: #000;
  border: 1px solid #000;
  border-radius: 4px;
  color: #fff !important;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
}
.pattern-product-button:hover,
.pattern-product-button:focus {
  background: #333;
  border-color: #333;
  color: #fff !important;
  text-decoration: none !important;
}

/* ==== Featured Patterns nav ====
   Per-page theming: override these variables on .pattern-featured
   (via a modifier class or an inline style) to recolor the whole block. */
.pattern-featured {
	--featured-bg: #000;
    --featured-heading: #fff;
    --featured-btn-text: #fff;
    --featured-btn-bg: transparent;
    --featured-btn-border: #fff;
    --featured-btn-hover-text: #000;
    --featured-btn-hover-bg: #fff;
    --featured-btn-hover-border: #fff;
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 42px 15px;
  background: var(--featured-bg);
  text-align: center;
  margin-bottom: 25px;
}
.pattern-featured-heading {
  margin: 0 0 26px;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 400;
  color: var(--featured-heading);
}
.pattern-featured-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.pattern-featured-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  background: var(--featured-btn-bg);
  border: 2px solid var(--featured-btn-border);
  border-radius: 6px;
  color: var(--featured-btn-text) !important;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pattern-featured-link:hover,
.pattern-featured-link:focus {
  background: var(--featured-btn-hover-bg);
  border-color: var(--featured-btn-hover-border);
  color: var(--featured-btn-hover-text) !important;
  text-decoration: none !important;
}
/* Optional: mark the button for the page you're currently on. */
.pattern-featured-link.is-active {
  background: var(--featured-btn-hover-bg);
  border-color: var(--featured-btn-hover-border);
  color: var(--featured-btn-hover-text) !important;
  pointer-events: none;
  cursor: default;
}

/* ---- Hero + footer banners (footer fix included: margin-bottom: -10px closes the gap) ---- */
.pattern-hero-banner {
  padding-left: 0;
  padding-right: 0;
  margin-top: -1px;
}
.pattern-hero-image {
  width: 100%;
  height: auto;
}
.pattern-footer-banner {
  padding-left: 0;
  padding-right: 0;
  margin-top: 50px;
  margin-bottom: -10px;
}
.pattern-footer-image {
  width: 100%;
  height: auto;
}

@media (max-width: 991px) {
  .pattern-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 36px;
  }
}
@media (max-width: 767px) {
  .pattern-landing-section {
    padding: 0 15px 35px;
  }
  .pattern-landing-intro {
    margin-bottom: 35px;
  }
  .pattern-landing-title {
    font-size: 24px;
  }
  .pattern-product-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }
  .pattern-product-image-wrap {
    height: auto;
    margin-bottom: 24px;
  }
  .pattern-product-image {
    max-height: none;
    width: 86%;
  }
  .pattern-product-title {
    font-size: 26px;
  }
  .pattern-hero-banner,
  .pattern-footer-banner {
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
  }
}
