/* ============================================================
   Industries Page — Premium SaaS Design
   Extends main.css — add to wp_enqueue_styles or @import
   ============================================================ */

/* ============================================================
   Section 1: Hero
   ============================================================ */

.ind-hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
}

.ind-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 10s ease;
}

.ind-hero:hover .ind-hero__bg {
  transform: scale(1);
}

.ind-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 15, 30, 0.18) 0%,
    rgba(10, 15, 30, 0.55) 55%,
    rgba(10, 15, 30, 0.88) 100%
  );
  z-index: 1;
}

.ind-hero__pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 50%);
}

.ind-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  padding-bottom: 80px;
  padding-top: 160px;
}

.ind-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
}

.ind-hero__copy .eyebrow {
  margin-bottom: 20px;
}

.ind-hero__title {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.03em;
  color: #fff;
  margin: 0 0 18px;
}

.ind-hero__desc,
.ind-hero__copy p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 32px;
  max-width: 560px;
}

.ind-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ind-hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 320px;
  align-self: end;
  background: none;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.ind-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  transition: background .2s ease;
}

.ind-hero__stat:hover {
  background: rgba(255, 255, 255, 0.16);
}

.ind-hero__stat strong {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.ind-hero__stat span {
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ind-card:nth-child(even) {
  display: flex;
  flex-direction: column;
}

.ind-card:nth-child(even) .ind-card__media {
  order: 0;
}

/* ============================================================
   Section 2: Industry Cards Grid
   ============================================================ */

.ind-grid {
  background:
    linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
  padding: 96px 0;
}

.ind-grid .section-head {
  margin-bottom: 56px;
}

.section-head--center {
  display: flex;
  justify-content: center;
  text-align: center;
}

.section-head--center > div {
  max-width: 640px;
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.1;
}

.section-head p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-muted);
  max-width: 560px;
  margin: 0 auto;
}

.ind-grid__layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* Industry Card */

.ind-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    0 4px 12px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.ind-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.07),
    0 24px 48px rgba(15, 23, 42, 0.09);
  border-color: rgba(148, 163, 184, 0.4);
}

.ind-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}

.ind-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  display: block;
}

.ind-card:hover .ind-card__media img {
  transform: scale(1.06);
}

.ind-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0) 40%,
    rgba(15, 23, 42, 0.25) 100%
  );
  pointer-events: none;
}

.ind-card__projects {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.ind-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.ind-card__body h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}

.ind-card__body > p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink-muted);
  margin: 0;
}

/* Key Solutions */

.ind-card__solutions {
  padding: 14px 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.7);
}

.ind-card__solutions strong {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-light);
  margin-bottom: 10px;
}

.ind-card__solutions ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ind-card__solutions ul li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.15s ease;
}

.ind-card__solutions ul li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  flex-shrink: 0;
}

.ind-card:hover .ind-card__solutions ul li {
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(239, 246, 255, 0.7);
}

/* Stats Row */

.ind-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px solid var(--border-light);
}

.ind-card__stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px;
  text-align: center;
}

.ind-card__stat-item strong {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}

.ind-card__stat-item:nth-child(1) strong {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ind-card__stat-item:nth-child(2) strong {
  background: linear-gradient(135deg, #10b981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ind-card__stat-item:nth-child(3) strong {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ind-card__stat-item span {
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-light);
}

/* ============================================================
   Section 3: Solutions Grid
   ============================================================ */

.ind-solutions {
  background: #ffffff;
  padding: 96px 0;
}

.ind-solutions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.ind-solutions__card {
  position: relative;
  padding: 36px;
  background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    0 4px 14px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.ind-solutions__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 24px 24px 0 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.ind-solutions__card:nth-child(1)::before {
  background: linear-gradient(90deg, #3b82f6, #6366f1);
}
.ind-solutions__card:nth-child(2)::before {
  background: linear-gradient(90deg, #10b981, #06b6d4);
}
.ind-solutions__card:nth-child(3)::before {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}
.ind-solutions__card:nth-child(4)::before {
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
}

.ind-solutions__card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.07),
    0 20px 40px rgba(15, 23, 42, 0.08);
}

.ind-solutions__card:hover::before {
  opacity: 1;
}

/* Icon per card */
.ind-solutions__card::after {
  content: "";
  position: absolute;
  top: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  opacity: 0.06;
  pointer-events: none;
}

.ind-solutions__card:nth-child(1)::after { background: #3b82f6; }
.ind-solutions__card:nth-child(2)::after { background: #10b981; }
.ind-solutions__card:nth-child(3)::after { background: #f59e0b; }
.ind-solutions__card:nth-child(4)::after { background: #8b5cf6; }

.ind-solutions__card-icon {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  z-index: 1;
  pointer-events: none;
}

.ind-solutions__card:nth-child(1) .ind-solutions__card-icon { color: #3b82f6; }
.ind-solutions__card:nth-child(2) .ind-solutions__card-icon { color: #10b981; }
.ind-solutions__card:nth-child(3) .ind-solutions__card-icon { color: #d97706; }
.ind-solutions__card:nth-child(4) .ind-solutions__card-icon { color: #7c3aed; }

.ind-solutions__card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  padding-right: 60px;
}

.ind-solutions__card > p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-muted);
  margin: 0 0 22px;
  padding-right: 60px;
}

.ind-solutions__tags {
  padding-right: 60px;
}

.ind-solutions__tags strong {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-light);
  margin-bottom: 10px;
}

.ind-solutions__tags > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ind-solutions__tags span {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.15s ease;
}

.ind-solutions__card:nth-child(1) .ind-solutions__tags span:hover {
  background: var(--blue-soft);
  border-color: rgba(59, 130, 246, 0.25);
  color: var(--blue-dark);
}

.ind-solutions__card:nth-child(2) .ind-solutions__tags span:hover {
  background: var(--green-soft);
  border-color: rgba(16, 163, 74, 0.25);
  color: var(--green);
}

.ind-solutions__card:nth-child(3) .ind-solutions__tags span:hover {
  background: var(--orange-soft);
  border-color: rgba(245, 158, 11, 0.25);
  color: var(--orange);
}

.ind-solutions__card:nth-child(4) .ind-solutions__tags span:hover {
  background: var(--violet-soft);
  border-color: rgba(139, 92, 246, 0.25);
  color: var(--violet);
}

/* ============================================================
   Section 4: Why Choose Us
   ============================================================ */

.ind-why-us {
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
  padding: 96px 0;
}

.ind-why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.ind-why-us__card {
  position: relative;
  padding: 32px 28px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 22px;
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    0 4px 14px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.ind-why-us__card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.07),
    0 20px 40px rgba(15, 23, 42, 0.08);
}

/* Floating number accent */
.ind-why-us__card::before {
  content: attr(data-index);
  position: absolute;
  top: 20px;
  right: 22px;
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  opacity: 0.04;
  letter-spacing: -0.04em;
  pointer-events: none;
}

/* Accent strip */
.ind-why-us__card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.ind-why-us__card:hover::after {
  opacity: 1;
}

.ind-why-us__card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 4px 12px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ind-why-us__card:nth-child(1) .ind-why-us__card-icon {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #2563eb;
}
.ind-why-us__card:nth-child(2) .ind-why-us__card-icon {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  color: #16a34a;
}
.ind-why-us__card:nth-child(3) .ind-why-us__card-icon {
  background: linear-gradient(135deg, #fef9c3, #fef08a);
  color: #ca8a04;
}
.ind-why-us__card:nth-child(4) .ind-why-us__card-icon {
  background: linear-gradient(135deg, #faf5ff, #ede9fe);
  color: #7c3aed;
}

.ind-why-us__card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.ind-why-us__card > p {
  font-size: 0.875rem;
  line-height: 1.72;
  color: var(--ink-muted);
  margin: 0;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1100px) {
  .ind-grid__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ind-why-us__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .ind-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .ind-hero__stats {
    grid-template-columns: repeat(4, 1fr);
    min-width: unset;
    width: 100%;
    order: 0;
    max-width: none;
    margin: 0;
  }

  .ind-hero__copy {
    order: 0;
  }

  .ind-solutions__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .ind-hero__inner {
    padding-top: 100px;
    padding-bottom: 48px;
    gap: 32px;
  }

  .ind-hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    min-width: unset;
  }

  .ind-hero__stat strong {
    font-size: 1.6rem;
  }

  .ind-grid__layout {
    grid-template-columns: 1fr;
  }

  .ind-why-us__grid {
    grid-template-columns: 1fr;
  }

  .ind-hero__copy h1 {
    font-size: 2.2rem;
  }

  .ind-solutions__card {
    padding: 28px 24px;
  }

  .ind-solutions__card::after,
  .ind-solutions__card-icon {
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
  }

  .ind-solutions__card-icon {
    font-size: 18px;
  }

  .ind-why-us__card {
    padding: 28px 24px;
  }
}

/* Override main.css alternating layout on all screen sizes */
@media (max-width: 991px) {
  .ind-card,
  .ind-card:nth-child(even) {
    display: flex;
    flex-direction: column;
  }
  .ind-card__media {
    order: 0 !important;
  }
  .ind-card__body {
    order: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ind-card,
  .ind-solutions__card,
  .ind-why-us__card,
  .ind-hero__stat-item,
  .ind-card__media img {
    transition: none;
  }
}
