/* ============================================
   Wincraft – Products page (hero, CTA box, info block, table)
   ============================================ */

/* ----- Hero banner: gradient, rounded, image right, text left, round link pills ----- */
.products-hero-wrap {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Projects page hero – teal background, light text */
.projects-hero-wrap .products-hero-banner {
  background: #146262;
  border-color: rgba(255, 255, 255, 0.15);
}
.projects-hero-wrap .products-hero-headline {
  color: #fff;
}
.projects-hero-wrap .products-hero-text {
  color: rgba(255, 255, 255, 0.9);
}
.projects-hero-wrap .products-hero-link-pill {
  background-color: #d8892c;
  color: #fff;
}
.projects-hero-wrap .products-hero-link-pill:hover {
  background-color: #be7420;
  color: #fff;
}

@media (min-width: 768px) {
  .products-hero-wrap {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

.products-hero-banner {
  border-radius: var(--radius-banner);
  overflow: hidden;
  background: linear-gradient(to right, #e0e7ff 0%, #f0f4ff 50%, #f9fafb 100%);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

@media (min-width: 1024px) {
  .products-hero-banner {
    flex-direction: row;
    min-height: 380px;
  }
}

.products-hero-content {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  order: 1;
}

@media (min-width: 768px) {
  .products-hero-content {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .products-hero-content {
    flex: 1;
    padding: 2.5rem 3rem;
    order: 0;
  }
}

.products-hero-headline {
  font-size: 1.5rem;
  font-weight: 700;
  color: #171f34;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
  font-family: var(--font);
}

@media (min-width: 768px) {
  .products-hero-headline {
    font-size: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .products-hero-headline {
    font-size: 2rem;
  }
}

.products-hero-text {
  color: #585858;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  max-width: 36rem;
}

.products-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.products-hero-link-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--white);
  background-color: var(--blue);
  border-radius: 9999px;
  transition: background-color 0.2s, filter 0.2s;
}

.products-hero-link-pill:hover {
  background-color: var(--blue-dark);
  color: var(--white);
  filter: brightness(1.05);
}

.products-hero-image {
  flex-shrink: 0;
  order: 0;
  min-height: 200px;
  background-color: var(--gray-200);
}

@media (min-width: 1024px) {
  .products-hero-image {
    width: 42%;
    min-height: 380px;
    order: 1;
  }
}

.products-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
}

@media (min-width: 1024px) {
  .products-hero-image img {
    min-height: 380px;
  }
}

/* Keep the 3-card products section centered on desktop */
@media (min-width: 1024px) {
  .products-grid.products-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Shorter image box in Our Comprehensive Doors and Window Systems */
.products-grid-three .product-card .card-image {
  aspect-ratio: 2/1;
}

/* ----- CTA box: round corner, form right, content left, three round icon links ----- */
.products-cta-box {
  border-radius: var(--radius-banner);
  overflow: hidden;
  background-color: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .products-cta-box {
    flex-direction: row;
    align-items: stretch;
  }
}

.products-cta-content {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .products-cta-content {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .products-cta-content {
    flex: 1;
    padding: 2rem 2.5rem;
    border-right: 1px solid var(--gray-100);
  }
}

.products-cta-headline {
  font-size: 1.25rem;
  font-weight: 700;
  color: #171f34;
  margin: 0 0 0.5rem 0;
  font-family: var(--font);
}

@media (min-width: 768px) {
  .products-cta-headline {
    font-size: 1.5rem;
  }
}

.products-cta-text {
  color: #585858;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

.products-cta-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.products-cta-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--gray-100);
  color: var(--blue);
  border: 1px solid var(--gray-200);
  transition: background-color 0.2s, color 0.2s;
}

.products-cta-icon-link:hover {
  background-color: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.products-cta-icon-link svg {
  width: 1.35rem;
  height: 1.35rem;
}

/* Form side uses existing .consultation-form-box; on products page ensure it sits in the rounded box */
.products-cta-box .consultation-form-box {
  border-radius: 0;
  background-color: var(--gray-200);
}

@media (min-width: 1024px) {
  .products-cta-box .consultation-form-box {
    width: 380px;
    flex-shrink: 0;
  }
}

/* ----- Info box: rounded, why choose, key benefits, table, customization, installation ----- */
.products-info-box {
  border-radius: var(--radius-banner);
  padding: 1.5rem 1.25rem;
  background-color: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .products-info-box {
    padding: 2.5rem 2rem;
  }
}

@media (min-width: 1024px) {
  .products-info-box {
    padding: 3rem;
  }
}

.products-info-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #171f34;
  margin: 0 0 1rem 0;
  font-family: var(--font);
}

@media (min-width: 768px) {
  .products-info-title {
    font-size: 1.6rem;
  }
}

.products-info-lead {
  color: #585858;
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 0 0 1.5rem 0;
}

.products-info-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: #171f34;
  margin: 2rem 0 0.75rem 0;
  font-family: var(--font);
}

.products-info-subtitle:first-of-type {
  margin-top: 0;
}

.products-info-list {
  margin: 0 0 1.5rem 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.products-info-list li {
  margin-bottom: 0.75rem;
  color: #585858;
  font-size: 1rem;
  line-height: 1.6;
}

.products-info-list li strong {
  color: var(--gray-900);
}

.products-info-bullets {
  margin: 0 0 1rem 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.products-info-bullets li {
  margin-bottom: 0.5rem;
  color: #585858;
  font-size: 1rem;
  line-height: 1.6;
}

/* Comparison table */
.products-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.products-comparison-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.products-comparison-table th,
.products-comparison-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.products-comparison-table th {
  background-color: var(--gray-50);
  font-weight: 600;
  color: #171f34;
}

.products-comparison-table thead th {
  border-bottom: 2px solid var(--gray-200);
}

.products-comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.products-comparison-table td {
  color: #585858;
}

.products-comparison-table td:first-child {
  font-weight: 500;
  color: var(--gray-800);
}

@media (max-width: 639px) {
  .products-comparison-table {
    font-size: 0.875rem;
  }
  .products-comparison-table th,
  .products-comparison-table td {
    padding: 0.5rem 0.75rem;
  }
}

/* ----- Projects page: 3 cards centered ----- */
.projects-cards-section .products-grid {
  grid-template-columns: 1fr;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .projects-cards-section .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
