/*
 * Banners & Displays landing page (page-banners-displays.php).
 *
 * Reuses the site's components: the hero copy, buttons and feature strip
 * from the channel letters page (.home-hero-*), and the .sf-* / .cl-*
 * sections from seo-pages.css and style.css. Only the layout around them
 * and the page-specific blocks are defined here.
 */

/* Hero: same navy, type and buttons as the channel letters hero, with
   product photos in place of the background image. */
.bd-hero {
  overflow: hidden;
  padding: 18px 0 64px;
  background:
    radial-gradient(circle at 85% 20%, rgba(31, 168, 222, 0.28), transparent 45%),
    #031835;
  color: #ffffff;
}

.bd-hero .site-breadcrumbs ol {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
}

.bd-hero .site-breadcrumbs a {
  color: #5fd0ff;
}

.bd-hero .site-breadcrumbs [aria-current] {
  color: #ffffff;
}

.bd-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
  margin-top: 32px;
}

.bd-hero .home-hero-eyebrow {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.bd-hero-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.1rem, 3.6vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.bd-hero-title span {
  color: #1fa8de;
}

.bd-hero .home-hero-lead {
  max-width: 540px;
}

.bd-hero .home-hero-button-text small sup {
  font-size: 0.65em;
}

.bd-hero-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bd-hero-tile {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.bd-hero-tile--2,
.bd-hero-tile--4 {
  transform: translateY(24px);
}

.bd-hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Feature strip under the hero (.home-hero-features) */
.bd-features {
  border-bottom: 1px solid #e6ebf1;
}

/* Product line cards: product shots sit on white, so show them whole. */
.bd-card .sf-type-image {
  border-bottom: 1px solid #e6ebf1;
  background: #ffffff;
}

.bd-card .sf-type-image img {
  object-fit: contain;
  transition: transform 0.35s ease;
}

.bd-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bd-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.bd-card:hover .sf-type-image img {
  transform: scale(1.04);
}

/* Shop by occasion */
.bd-occasion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.bd-occasion {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #e6ebf1;
  border-top: 3px solid #1fa8de;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  scroll-margin-top: var(--scroll-offset, 80px);
}

.bd-occasion h3 {
  margin: 0 0 8px;
  color: #172027;
  font-size: 1.1rem;
  font-weight: 700;
}

.bd-occasion p {
  margin: 0 0 16px;
  color: #52616f;
  font-size: 0.95rem;
  line-height: 1.55;
}

.bd-occasion ul {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.bd-occasion li + li {
  border-top: 1px solid #e6ebf1;
}

.bd-occasion a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  color: #172027;
  font-weight: 700;
  text-decoration: none;
}

.bd-occasion a:hover span,
.bd-occasion a:focus-visible span {
  color: #127ea8;
}

.bd-occasion small {
  color: #52616f;
  font-size: 0.85rem;
  font-weight: 600;
}

.bd-occasion small del {
  display: none;
}

/* Best sellers */
.bd-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.bd-product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e6ebf1;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  color: #172027;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bd-product:hover,
.bd-product:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
  color: #172027;
}

.bd-product-image {
  display: block;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid #e6ebf1;
  background: #ffffff;
}

.bd-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bd-product-tag {
  margin: 16px 18px 4px;
  color: #1a8fbd;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bd-product-name {
  margin: 0 18px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.bd-product-price {
  margin: auto 18px 0;
  padding: 12px 0 18px;
  font-weight: 700;
}

.bd-product-price small {
  color: #52616f;
  font-weight: 600;
}

/* Campaign call to action (buttons are .home-hero-* buttons) */
.bd-cta {
  padding: 8px 0 24px;
}

.bd-cta-inner {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  padding: 40px 48px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(31, 168, 222, 0.3), transparent 50%),
    #031835;
  color: #ffffff;
}

.bd-cta h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
}

.bd-cta p {
  max-width: 580px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.6;
}

.bd-cta-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 14px;
}

/* Section rhythm */
.bd-stands {
  padding-bottom: 64px;
  background: #f7f8fc;
}

.bd-page .cl-compare .cl-section-lead,
.bd-page .cl-faq .cl-section-lead {
  margin: 0 auto;
}

.bd-page .cl-steps {
  margin-top: 0;
}

@media (max-width: 1199px) {
  .bd-occasion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .bd-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .bd-hero-media {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .bd-hero-tile--2,
  .bd-hero-tile--4 {
    transform: none;
  }

  .bd-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bd-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
  }
}

/* On phones style.css stacks the home hero buttons left-aligned; here they
   go full width so both are easy to tap. */
@media (max-width: 767px) {
  .bd-hero {
    padding-bottom: 48px;
  }

  .bd-hero-grid {
    margin-top: 20px;
  }

  .bd-hero .home-hero-eyebrow {
    padding: 6px 10px;
    font-size: 0.64rem;
    letter-spacing: 0.04em;
  }

  .bd-hero .home-hero-actions,
  .bd-cta-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .bd-hero .home-hero-shop-button,
  .bd-hero .home-hero-secondary-button,
  .bd-cta .home-hero-shop-button,
  .bd-cta .home-hero-secondary-button {
    justify-content: center;
    min-height: 52px;
  }

  .bd-hero .home-hero-button-text {
    align-items: center;
  }

  .bd-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 575px) {
  .bd-hero-title {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .bd-hero-media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bd-hero-tile--3,
  .bd-hero-tile--4 {
    display: none;
  }

  .bd-occasion-grid {
    grid-template-columns: 1fr;
  }

  .bd-occasion {
    padding: 20px;
  }

  .bd-product-tag {
    margin: 12px 12px 4px;
    font-size: 0.66rem;
  }

  .bd-product-name {
    margin: 0 12px;
    font-size: 0.95rem;
  }

  .bd-product-price {
    margin: auto 12px 0;
    padding: 8px 0 14px;
    font-size: 0.92rem;
  }

  .bd-cta-inner {
    padding: 28px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bd-card,
  .bd-card .sf-type-image img,
  .bd-product {
    transition: none;
  }

  .bd-card:hover,
  .bd-card:hover .sf-type-image img,
  .bd-product:hover {
    transform: none;
  }
}
