/* ══════════════════════════════════════════
   Page: Industries Index
   Page-specific styles (extends global.css)
   ══════════════════════════════════════════ */

/* Override block-theme content constraint */
.page-hero,
.industries-index,
.why-industry,
.related-articles {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* PAGE HERO */
.page-hero {
  width: 100%;
  box-sizing: border-box;
  padding: 129px 64px 80px;
}
.page-hero h1 { max-width: none; }
.page-hero p  { max-width: none; }

/* INDUSTRIES GRID */
.industries-index {
  padding: 64px 0 48px;
}
.industries-index-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid var(--brown);
}
.industries-index-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 0;
  font-style: italic;
}
.industries-count {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}

.industry-card {
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.industry-card:hover .industry-img-wrap img,
.industry-card:hover .industry-img-wrap .industry-img-placeholder {
  transform: scale(1.05);
}
.industry-card:hover .industry-title {
  color: var(--red);
}

.industry-img-wrap {
  position: relative;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  background: var(--brown);
  aspect-ratio: 1 / 1;
}
.industry-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.industry-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  transition: transform 0.4s ease;
}

.industry-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.industry-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.industry-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.industry-desc {
  font-size: 0.82rem;
  color: #fff;
  line-height: 1.6;
}

/* GRADIENT PLACEHOLDERS */
.style-1 { background: linear-gradient(135deg, #f5e6d3 0%, #e8cdb0 100%); }
.style-2 { background: linear-gradient(135deg, #fde8e8 0%, #f5c4c4 100%); }
.style-3 { background: linear-gradient(135deg, #e8f0e8 0%, #c8dcc8 100%); }
.style-4 { background: linear-gradient(135deg, #e8e8f5 0%, #c8c8e8 100%); }
.style-5 { background: linear-gradient(135deg, #f5f0e8 0%, #e8dcc8 100%); }
.style-6 { background: linear-gradient(135deg, #f0e8f5 0%, #d8c8e8 100%); }

/* WHY INDUSTRY SECTION */
.why-industry {
  padding: 80px 64px;
  background: var(--cream-dark);
}
.why-industry h2 { margin-bottom: 20px; }
.why-industry > p {
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.8;
  max-width: 700px;
  margin-bottom: 40px;
}
.why-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.why-stat { display: flex; flex-direction: column; gap: 4px; }
.why-stat-val {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--red);
  line-height: 1;
}
.why-stat-label { font-size: 0.85rem; color: var(--muted); font-weight: 500; }

/* RELATED ARTICLES */
.related-articles {
  padding: 64px 0 80px;
}
.related-articles-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid var(--brown);
}
.related-articles-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-style: italic;
  margin-bottom: 0;
}
.view-all-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  transition: opacity 0.2s;
}
.view-all-link:hover {
  opacity: 0.7;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}

.article-card {
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.article-card:hover .article-img-wrap img,
.article-card:hover .article-img-wrap .article-img-placeholder {
  transform: scale(1.05);
}
.article-card:hover .article-title {
  color: var(--red);
}

.article-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--brown);
  aspect-ratio: 1 / 1;
}
.article-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  transition: transform 0.4s ease;
}

.article-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.article-date {
  font-size: 0.75rem;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 500;
}
.article-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.article-excerpt {
  font-size: 0.82rem;
  color: #fff;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .page-hero {
    padding: 80px 24px 48px;
  }
  .industries-index {
    padding: 40px 24px 32px;
  }
  .industries-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .industries-index-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .why-industry {
    padding: 48px 24px;
  }
  .why-stats { gap: 32px; }
  .related-articles {
    padding: 40px 24px 60px;
  }
  .related-articles-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .industry-img-wrap,
  .article-img-wrap {
    aspect-ratio: 4 / 3;
  }
}
