/* Fixes and polish for direction 3 */

/* Ensure hero heading stays white */
.hero-content h1 {
  color: var(--white);
}

/* Hero buttons white text/border on dark background */
.hero .btn-outline {
  color: var(--white);
  border-color: var(--white);
}

.hero .btn-outline:hover {
  color: var(--navy);
}

.hero .btn-primary {
  color: var(--white);
}

/* Product card alignment */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card-img {
  height: 240px;
  flex-shrink: 0;
}

.product-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-content .btn {
  margin-top: auto;
}

.product-card .product-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 18px;
  margin: 0 0 22px;
  list-style: none;
}

.product-card .product-features li {
  position: relative;
  padding-left: 14px;
  font-size: 0.9rem;
  color: var(--taupe);
  line-height: 1.5;
}

.product-card .product-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* Industry cards: hide icon, ensure image fills */
.industry-card i {
  display: none;
}

.industry-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.industry-card h3,
.industry-card p {
  z-index: 3;
}

/* Clients section spacing */
.clients-section {
  padding: 100px 0;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 25px;
}

/* Larger logos */
.logo img {
  max-height: 60px !important;
}

/* Swap logo variant based on header scroll state */
.logo .logo-dark {
  display: none;
}

header.scrolled .logo-light {
  display: none;
}

header.scrolled .logo-dark {
  display: block;
}

.footer-logo img {
  max-height: 130px !important;
}

/* Industries grid 4x4 layout */
.industries-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 22px !important;
}

.industry-card {
  height: 360px !important;
}

@media (max-width: 1024px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .industries-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Page banner heading first text white */
.page-banner h1 {
  color: var(--white);
}

/* Finish items hover text white */
.finish-item:hover,
.finish-item:hover h4 {
  color: var(--white);
}

/* Button white hover: white text with gold fill */
.btn-white:hover {
  color: var(--white);
}

.btn-white::after {
  background: var(--gold);
}

/* About grid spacing */
.about-grid {
  gap: 100px !important;
  margin-bottom: 60px !important;
}

.about-content p {
  margin-bottom: 14px;
}

/* Footer 3-column alignment */
.footer-grid {
  grid-template-columns: 2fr 1fr 1fr !important;
  gap: 45px !important;
  align-items: start !important;
}

/* Finish items white border on hover */
.finish-item:hover {
  border-color: var(--white) !important;
}

/* Contact form send button white border */
.contact-form button.btn-primary {
  border: 2px solid var(--white);
}

/* Product card feature list spacing */
.product-card .product-features {
  gap: 10px 22px !important;
  margin-bottom: 28px !important;
}

.product-card .product-features li {
  line-height: 1.6 !important;
}

/* Gallery overlay text visibility on hover */
.gallery-overlay {
  flex-direction: column;
  text-align: center;
  padding: 20px;
}

.gallery-overlay h4 {
  color: var(--white) !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.gallery-overlay p {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.85rem;
}

/* Process step number hover text white */
.process-card .step {
  display: inline-block;
  width: 55px;
  height: 55px;
  line-height: 55px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 18px;
  transition: var(--transition);
}

.process-card:hover .step {
  color: var(--white);
  border-color: var(--white);
}

/* Responsive grid fixes */
@media (max-width: 1024px) {
  .product-grid,
  .industries-grid,
  .process-grid,
  .finishes-grid,
  .why-grid,
  .gallery-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 50px !important;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .product-grid,
  .industries-grid,
  .process-grid,
  .finishes-grid,
  .why-grid,
  .gallery-grid,
  .contact-grid,
  .clients-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .page-banner h1 {
    font-size: 2.2rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  /* Side-by-side product cards (products/applications pages) stack on tablets */
  .product-card {
    grid-template-columns: 1fr !important;
  }

  .product-card-img {
    height: 220px !important;
  }
}

/* Global mobile responsiveness */
video {
  max-width: 100%;
}

.info-bar .container {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 25px;
  text-align: center;
}

@media (max-width: 600px) {
  .product-features {
    grid-template-columns: 1fr !important;
  }

  .contact-detail {
    padding: 18px;
  }

  .contact-form {
    padding: 25px !important;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.9rem !important;
  }

  .page-banner h1 {
    font-size: 1.8rem !important;
  }

  .section-title h2 {
    font-size: 1.7rem !important;
  }

  .hero-highlights span {
    font-size: 0.65rem;
    padding: 8px 14px;
  }

  .container {
    width: 92%;
    padding: 0 12px;
  }

  .section-padding {
    padding: 60px 0 !important;
  }

  .contact-detail {
    flex-direction: column;
    gap: 8px;
  }

  .footer-col {
    text-align: center;
  }

  .footer-grid {
    justify-items: center;
  }
}
