/* ==========================================================================
   AVCO Industries Listing Page
   Prefix: avco-il-
   ========================================================================== */

/* ===== HERO SECTION ===== */
body.avco-page .avco-il-hero {
  padding: var(--avco-space-12) var(--avco-space-15) 0;
}

body.avco-page .avco-il-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--avco-space-8);
  gap: var(--avco-space-8);
}

body.avco-page h1.avco-il-hero-heading {
  font-family: var(--avco-font-heading);
  font-size: 3.25rem;
  font-weight: 700;
  color: var(--avco-primary-950);
  line-height: 1.2;
  letter-spacing: -0.065rem;
  max-width: 34rem;
  flex-shrink: 0;
}

body.avco-page .avco-il-hero-desc {
  font-size: var(--avco-text-base);
  font-weight: 400;
  color: var(--avco-gray-600);
  line-height: 1.7;
  max-width: 32.0625rem;
}

/* ── Banner: image + CTA box ── */
body.avco-page .avco-il-hero-banner {
  display: flex;
  /* border-radius: var(--avco-radius-round); */
  overflow: hidden;
  max-height: 30rem;
}

body.avco-page .avco-il-hero-banner-img {
  flex: 1;
  min-height: 18.75rem;
}

body.avco-page .avco-il-hero-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.avco-page .avco-il-hero-cta {
  width: 33.4375rem;
  flex-shrink: 0;
  background: var(--avco-primary-800);
  padding: var(--avco-space-16) var(--avco-space-15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--avco-space-6);
  position: relative;
  overflow: hidden;
}

body.avco-page .avco-il-hero-cta-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

body.avco-page .avco-il-hero-cta-pattern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.avco-page .avco-il-hero-cta-content {
  position: relative;
  z-index: var(--avco-z-content);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.avco-page .avco-il-hero-cta h2 {
  font-size: var(--avco-text-4xl);
  font-weight: 500;
  font-family: var(--avco-font-heading);
  color: var(--avco-white);
  line-height: 1.3;
  letter-spacing: -0.0625rem;
}

body.avco-page .avco-il-hero-cta p {
  font-size: var(--avco-text-base);
  font-weight: 400;
  color: var(--avco-gray-100);
  line-height: 1.7;
}

body.avco-page .avco-il-hero-cta .avco-il-hero-cta-content .avco-il-cta-btn {
  display: inline-block;
  background: var(--avco-white);
  color: var(--avco-secondary-700);
  text-decoration: none;
  font-size: var(--avco-text-base);
  font-weight: 600;
  font-family: var(--avco-font-body);
  padding: 0.75rem 1.5rem;
  border: none;
  cursor: pointer;
  min-width: 12.5rem;
  text-align: center;
  align-self: flex-start;
  line-height: 1.7;
  transition: opacity var(--avco-transition-fast);
  margin-top: 2rem;
  @media screen and (max-width: 767px) {
    margin-top: 0;
  }
}

body.avco-page .avco-il-hero-cta .avco-il-cta-btn:hover {
  opacity: 0.9;
}

/* ===== INDUSTRIES GRID SECTION ===== */
body.avco-page .avco-il-section {
  padding: var(--avco-space-16) var(--avco-space-15);
}

body.avco-page h2.avco-il-section-heading {
  font-size: var(--avco-text-7xl);
  font-weight: 700;
  font-family: var(--avco-font-heading);
  color: var(--avco-primary-950);
  line-height: 1.2;
  letter-spacing: -0.065rem;
  margin-bottom: var(--avco-space-8);
}

body.avco-page .avco-il-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--avco-space-5);
}

/* ── Industry Card ── */
body.avco-page .avco-il-card {
  border: var(--avco-border-light);
  /* border-radius: var(--avco-radius-round); */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--avco-white);
}

body.avco-page .avco-il-card-img {
  height: 16.8125rem;
  overflow: hidden;
}

body.avco-page .avco-il-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--avco-transition-base);
}

body.avco-page .avco-il-card-content {
  padding: var(--avco-space-4) var(--avco-space-6) var(--avco-space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

body.avco-page .avco-il-card-title {
  display: flex;
  align-items: center;
  gap: var(--avco-space-2);
}

.avco-il-card-title.avco-il-card-title {
    margin-bottom: 8px;
}

.avco-il-card-desc p {
    margin-bottom: 16px;
}

body.avco-page .avco-il-card-title a {
  display: flex;
  align-items: center;
  gap: var(--avco-space-2);
  text-decoration: none;
  transition: color var(--avco-transition-fast);
}

body.avco-page .avco-il-card-title a:hover {
  color: var(--avco-primary-800);
}

body.avco-page .avco-il-card-title h3 {
  font-family: var(--avco-font-heading);
  font-size: var(--avco-text-xl);
  font-weight: 600;
  color: var(--avco-primary-950);
  line-height: 1.6;
}

body.avco-page .avco-il-card-title svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  fill: none;
}

body.avco-page .avco-container .avco-il-card-desc {
  font-size: var(--avco-text-sm);
  font-weight: 400;
  color: var(--avco-gray-600);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

body.avco-page .avco-il-card-action {
  margin-top: auto;
}

body.avco-page .avco-il-card-action .avco-il-btn-view {
  display: block;
  width: 100%;
  background: var(--avco-white);
  color: var(--avco-primary-800);
  text-decoration: none;
  font-size: var(--avco-text-base);
  font-weight: 600;
  font-family: var(--avco-font-body);
  padding: 0.75rem 1.5rem;
  border: 0.0625rem solid var(--avco-primary-800);
  cursor: pointer;
  text-align: center;
  line-height: 1.7;
  transition: background var(--avco-transition-fast), color var(--avco-transition-fast);
}

body.avco-page .avco-il-card-action .avco-il-btn-view:hover {
  background: var(--avco-primary-800);
  color: var(--avco-white);
}

/* ===== TABLET (max-width: 1279px) ===== */
@media (max-width: 1279px) {
  body.avco-page .avco-il-hero {
    padding: var(--avco-space-8) var(--avco-space-4) 0;
  }

  body.avco-page .avco-il-hero-top {
    flex-direction: column;
    gap: var(--avco-space-4);
  }

  body.avco-page h1.avco-il-hero-heading {
    font-size: var(--avco-text-6xl);
    max-width: 100%;
  }

  body.avco-page .avco-il-hero-desc {
    max-width: 100%;
  }

  body.avco-page .avco-il-hero-banner {
    flex-direction: column;
    /* border-radius: var(--avco-radius-sm); */
  }

  body.avco-page .avco-il-hero-cta .avco-il-cta-btn {
    margin-top: 0;
  }

  body.avco-page .avco-il-hero-banner-img {
    min-height: 12.5rem;
  }

  body.avco-page .avco-il-hero-cta {
    width: 100%;
    padding: var(--avco-space-10) var(--avco-space-6);
  }

  body.avco-page .avco-il-hero-cta h2 {
    font-size: var(--avco-text-xl);
  }

  body.avco-page .avco-il-section {
    padding: var(--avco-space-8) var(--avco-space-4);
  }

  body.avco-page h2.avco-il-section-heading {
    font-size: var(--avco-text-6xl);
  }

  body.avco-page .avco-il-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--avco-space-4);
  }

  body.avco-page .avco-il-card-img {
    height: 12.5rem;
  }

  body.avco-page .avco-il-card-content {
    padding: var(--avco-space-3) var(--avco-space-4) var(--avco-space-4);
  }

  body.avco-page .avco-il-card-action .avco-il-btn-view {
    font-size: var(--avco-text-sm);
    padding: var(--avco-space-2-5) var(--avco-space-4);
  }
}

/* ===== MOBILE (max-width: 767px) ===== */
@media (max-width: 767px) {
  body.avco-page .avco-il-hero {
    padding: var(--avco-space-6) var(--avco-space-4) 0;
  }

  body.avco-page .avco-il-hero-top {
    margin-bottom: var(--avco-space-6);
  }

  body.avco-page h1.avco-il-hero-heading {
    font-size: var(--avco-text-6xl);
    letter-spacing: -0.03125rem;
  }

  body.avco-page .avco-il-hero-desc {
    font-size: var(--avco-text-sm);
    padding-top: 0;
  }

  body.avco-page .avco-il-hero-banner {
    max-height: 100%;
    /* border-radius: var(--avco-radius-sm); */
  }

  body.avco-page .avco-il-hero-banner-img {
    min-height: auto;
  }

  body.avco-page .avco-il-hero-cta h2 {
    font-size: var(--avco-text-3xl);
  }

  body.avco-page .avco-il-hero-cta p {
    font-size: var(--avco-text-base);
  }

  body.avco-page .avco-il-hero-cta .avco-il-cta-btn {
    width: auto;
    min-width: unset;
  }

  body.avco-page .avco-il-section {
    padding: var(--avco-space-8) var(--avco-space-4);
  }

  body.avco-page h2.avco-il-section-heading {
    font-size: var(--avco-text-4xl);
    margin-bottom: var(--avco-space-8);
    margin-top: 32px;
  }

  body.avco-page .avco-il-grid {
    grid-template-columns: 1fr;
    gap: var(--avco-space-5);
  }

  body.avco-page .avco-il-card-img {
    height: 13.75rem;
  }

  body.avco-page .avco-il-card-content {
    padding: var(--avco-space-4) var(--avco-space-4);
    gap: 0;
  }

  body.avco-page .avco-il-card-title h3 {
    font-size: var(--avco-text-lg);
  }

  body.avco-page .avco-il-card-desc {
    font-size: var(--avco-text-xs);
  }

  body.avco-page .avco-il-card-action .avco-il-btn-view {
    font-size: var(--avco-text-sm);
    padding: var(--avco-space-2-5) var(--avco-space-4);
  }
}

/* ===== SMALL MOBILE (max-width: 374px) ===== */
@media (max-width: 374px) {
  body.avco-page h1.avco-il-hero-heading {
    font-size: var(--avco-text-3xl);
  }

  body.avco-page h2.avco-il-section-heading {
    font-size: var(--avco-text-3xl);
  }

  body.avco-page .avco-il-card-title h3 {
    font-size: var(--avco-text-base);
  }
}

@media screen and (max-width: 819px) {
  body.avco-page .avco-il-hero-cta {
    padding: var(--avco-space-8) var(--avco-space-4);
    gap: var(--avco-space-4);
  }
}
