/* =========================
   INDUSTRIES PAGE
========================= */

body {
  margin: 0;
  padding: 0;
  font-family: 'Canva Sans', sans-serif;
}

/* Section reveal animation */
.animate-section {
  opacity: 0;
  transform: translateY(-24px);
  transition: opacity 2.2s ease, transform 2.2s ease;
}

.animate-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   INDUSTRIES HERO
========================= */
.industries-hero {
  position: relative;
  height: 85vh;
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(
      rgba(7, 42, 84, 0.85),
      rgba(7, 42, 84, 0.65)
    ),
    url("/assets/industries-hero.png") center / cover no-repeat;
  overflow: hidden;
  color: #ffffff;
}

.industries-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 42, 84, 0.5);
  z-index: 1;
}

/* Canvas for interactive cursor */
#heroCanvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Hero content */
.industries-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  text-align: center;
  padding: 0 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.5s;
}

.section-eyebrow {
  color: #ecaf27;
  font-weight: 500;
  letter-spacing: 0.25em;
  font-size: 1.85rem;
  font-family: 'Garet', sans-serif;
  margin-bottom: 20px;
  display: inline-block;
  text-shadow: 2px 2px 6px rgba(234, 194, 49, 0.6);
}

.industries-hero h1 {
  font-family: 'Garet', sans-serif;
  font-weight: 400;
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}

.industries-hero p {
  font-size: 1.5rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
  margin: 0 auto;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   INDUSTRIES GRID
========================= */
.industries-list {
  background-color: #e6e6e6;
  padding: 5rem 2rem;
}

.industries-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}

/* Industry Card */
.industry-card {
  position: relative;
  background-color: #ffffff;
  background-size: cover;
  background-position: center;
  border-left: 4px solid #ecaf27;
  padding: 2.5rem;
  min-height: 380px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.8s ease;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px) scale(0.97);
}

.industry-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.industry-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7, 42, 84, 0.88) 0%,
    rgba(7, 42, 84, 0.75) 50%,
    rgba(7, 42, 84, 0.65) 100%
  );
  z-index: 1;
  transition: background 0.3s ease;
}

.industry-card:hover::before {
  background: linear-gradient(
    to bottom,
    rgba(7, 42, 84, 0.82) 0%,
    rgba(7, 42, 84, 0.68) 50%,
    rgba(7, 42, 84, 0.58) 100%
  );
}

.industry-card.is-visible:hover {
  transform: translateY(-4px) scale(1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Staggered animation delays */
.industry-card:nth-child(1) { transition-delay: 0.1s; }
.industry-card:nth-child(2) { transition-delay: 0.2s; }
.industry-card:nth-child(3) { transition-delay: 0.3s; }
.industry-card:nth-child(4) { transition-delay: 0.4s; }
.industry-card:nth-child(5) { transition-delay: 0.5s; }
.industry-card:nth-child(6) { transition-delay: 0.6s; }

.industry-card > * {
  position: relative;
  z-index: 2;
}

.industry-card h3 {
  font-family: 'Garet', sans-serif;
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 1rem;
  font-weight: 500;
  text-shadow: 2px 3px 8px rgba(0, 0, 0, 0.7);
}

.industry-context {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
  text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.6);
}

.industry-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.industry-card li {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.5);
}

.industry-card li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #ecaf27;
  font-weight: bold;
}

/* Individual card backgrounds */
.industry-card:nth-child(1) {
  background-image: url("/assets/industry-energy.jpg");
}

.industry-card:nth-child(2) {
  background-image: url("/assets/industry-mining.png");
}

.industry-card:nth-child(3) {
  background-image: url("/assets/industry-agriculture.jpg");
}

.industry-card:nth-child(4) {
  background-image: url("/assets/industry-manufacturing.jpg");
}

.industry-card:nth-child(5) {
  background-image: url("/assets/industry-construction.jpg");
}

.industry-card:nth-child(6) {
  background-image: url("/assets/industry-retail.jpg");
}

/* =========================
   INDUSTRIES CTA
========================= */
.industries-cta {
  background-color: #ffffff;
  padding: 5rem 2rem;
  text-align: center;
}

.industries-cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.industries-cta h2 {
  font-family: 'Garet', sans-serif;
  font-size: 2rem;
  color: #072a54;
  margin-bottom: 1.5rem;
  font-weight: 400;
  position: relative;
  display: inline-block;
  padding-top: 1rem;
}

.industries-cta h2::before {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #072a54;
  margin: 0 auto 1rem auto;
  border-radius: 2px;
}

.industries-cta p {
  font-size: 1.3rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background-color: #ecaf27;
  color: #072a54;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 400;
  font-family: 'Garet', sans-serif;
  text-decoration: none;
  border-radius: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #d9a81f;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(236, 175, 39, 0.3);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .industries-hero {
    height: 70vh;
  }

  .industries-hero h1 {
    font-size: 2.5rem;
  }

  .industries-hero p {
    font-size: 1.2rem;
  }

  .industries-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .industry-card {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .industries-hero h1 {
    font-size: 2rem;
  }

  .section-eyebrow {
    font-size: 1.3rem;
  }

  .industries-hero p {
    font-size: 1rem;
  }
}

/* Mobile Touch Support */
@media (hover: none) and (pointer: coarse) {
  .industry-card.is-visible:active {
    transform: translateY(-4px) scale(1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  .industry-card:active::before {
    background: linear-gradient(
      to bottom,
      rgba(7, 42, 84, 0.82) 0%,
      rgba(7, 42, 84, 0.68) 50%,
      rgba(7, 42, 84, 0.58) 100%
    );
  }
  
  .cta-button:active {
    background-color: #d9a81f;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(236, 175, 39, 0.3);
  }
  
  /* Better tap targets */
  .industry-card {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(236, 175, 39, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-section,
  .industry-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
