/* ==========================================================================
   COMPONENT STYLES – INDUSTRIES WE SERVE SECTION
   ========================================================================== */

.fda-industries-section {
  position: relative;
  padding: 100px 0;
  /* Luxurious vertical padding */
  background-color: var(--color-bg-dark);
  overflow: hidden;
  z-index: 10;
  transition: background-color var(--transition-fast);
}

/* Premium ultra-subtle blueprint blueprint grid mesh background */
.fda-industries-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 93, 211, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 93, 211, 0.018) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

/* Premium radial ambient glows */
.fda-industries-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(108, 93, 211, 0.045) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.fda-industries-glow {
  position: absolute;
  top: -150px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(108, 93, 211, 0.09) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .fda-industries-glow {
  background: radial-gradient(circle, rgba(108, 93, 211, 0.04) 0%, transparent 70%);
}

/* ── Left Column ─────────────────────────────────────────────────────────── */
.fda-industries-left {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding-right: var(--spacing-xl);
  z-index: 2;
}

.fda-industries-title {
  font-family: var(--font-primary);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extrabold);
  line-height: 1.2;
  color: var(--color-text-light);
  letter-spacing: -0.03em;
  /* Sleek premium spacing */
  margin: 0;
}

@media (min-width: 992px) {
  .fda-industries-title {
    font-size: var(--fs-4xl);
  }
}

.fda-industries-desc {
  font-family: var(--font-secondary);
  font-size: var(--fs-base);
  color: var(--color-text-muted);
  line-height: var(--lh-loose);
  letter-spacing: -0.01em;
  margin: 0;
}

.fda-industries-desc .text-gradient {
  font-weight: var(--fw-semibold);
  background: linear-gradient(135deg, #8B7BFF 0%, #6C5DD3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* CTA button */
.fda-industries-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 30px;
  border: 1px solid rgba(108, 93, 211, 0.3);
  background-color: rgba(108, 93, 211, 0.03);
  color: var(--color-text-light);
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  text-decoration: none;
  transition: all 250ms cubic-bezier(0.25, 1, 0.5, 1);
  width: fit-content;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fda-industries-cta:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF !important;
  box-shadow: 0 8px 24px rgba(108, 93, 211, 0.35);
  transform: translateY(-2px);
}

[data-theme="light"] .fda-industries-cta {
  color: #6C5DD3;
  background-color: rgba(108, 93, 211, 0.05);
  border-color: rgba(108, 93, 211, 0.2);
}

[data-theme="light"] .fda-industries-cta:hover {
  color: #FFFFFF !important;
}

.fda-industries-cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke-width: 2.2;
  transition: transform 250ms cubic-bezier(0.25, 1, 0.5, 1);
}

.fda-industries-cta:hover svg {
  transform: translateX(4px);
}

/* Stats row under the CTA */
.fda-industries-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  border-top: 1px solid var(--color-border);
  padding-top: 32px;
}

.fda-industries-stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fda-industries-stat-num {
  font-family: var(--font-primary);
  font-size: 2.25rem;
  font-weight: var(--fw-extrabold);
  color: var(--color-text-light);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #8B7BFF 0%, #6C5DD3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fda-industries-stat-label {
  font-family: var(--font-secondary);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Right Column — Card Grid (Bento Staggered Layout) ────────────────────── */
.fda-industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  /* Luxurious breathing space between cards */
  z-index: 2;
  position: relative;
}

/* ── Premium Industry Card Design ────────────────────────────────────────── */
.fda-industry-card {
  position: relative;
  border-radius: 24px;
  /* Premium soft curves */
  background-color: #12131A;
  /* Dark surface */
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* Thin border */
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  transition:
    transform 250ms cubic-bezier(0.25, 1, 0.5, 1),
    border-color 250ms cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 250ms cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Smooth Hover Interaction */
.fda-industry-card:hover {
  transform: translateY(-6px);
  /* lift 6px */
  border-color: var(--color-primary);
  /* border changes to brand color */
  box-shadow:
    0 20px 40px rgba(108, 93, 211, 0.12),
    0 0 24px rgba(108, 93, 211, 0.18);
  /* ambient glow */
}

/* Light Theme Card Overrides */
[data-theme="light"] .fda-industry-card {
  background-color: #FFFFFF;
  /* White surface */
  border: 1px solid #E9ECF7;
  /* Soft border */
  box-shadow: 0 8px 30px rgba(108, 93, 211, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  /* Very subtle shadow */
}

[data-theme="light"] .fda-industry-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 16px 40px rgba(108, 93, 211, 0.08), 0 4px 12px rgba(108, 93, 211, 0.04);
}

/* Card Body - Content Layout */
.fda-industry-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 2;
}

/* Premium Outlined Icon Inside Soft Gradient/Glass Containers */
.fda-industry-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 250ms cubic-bezier(0.25, 1, 0.5, 1);

  /* Dark theme glassmorphism styling */
  background: linear-gradient(135deg, rgba(108, 93, 211, 0.08) 0%, rgba(139, 123, 255, 0.16) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #8B7BFF;
  /* Accent purple */
}

.fda-industry-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  /* Sleek outlined look */
  transition: transform 250ms cubic-bezier(0.25, 1, 0.5, 1);
}

/* Light Theme Icon Container */
[data-theme="light"] .fda-industry-icon {
  background: linear-gradient(135deg, rgba(108, 93, 211, 0.05) 0%, rgba(139, 123, 255, 0.1) 100%);
  border: 1px solid #E9ECF7;
  box-shadow: 0 4px 10px rgba(108, 93, 211, 0.03);
  color: #6C5DD3;
  /* Primary purple accent */
}

/* Icon Container Hover Interactions */
.fda-industry-card:hover .fda-industry-icon {
  transform: translateY(-2px) scale(1.05);
  background: linear-gradient(135deg, rgba(108, 93, 211, 0.15) 0%, rgba(139, 123, 255, 0.25) 100%);
  border-color: rgba(108, 93, 211, 0.4);
  box-shadow: 0 6px 20px rgba(108, 93, 211, 0.25);
  color: #8B7BFF;
}

[data-theme="light"] .fda-industry-card:hover .fda-industry-icon {
  color: #6C5DD3;
  border-color: rgba(108, 93, 211, 0.3);
}

.fda-industry-card:hover .fda-industry-icon svg {
  transform: rotate(5deg) scale(1.05);
  /* Subtle icon animation */
}

/* Card typography & Content */
.fda-industry-card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fda-industry-card-title {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin: 0;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.fda-industry-card-desc {
  font-family: var(--font-secondary);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

/* Card Image Containers */
.fda-industry-card-image {
  position: relative;
  overflow: hidden;
}

.fda-industry-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 550ms cubic-bezier(0.16, 1, 0.3, 1);
}

.fda-industry-card:hover .fda-industry-card-image img {
  transform: scale(1.04);
  /* Image scales slightly on hover */
}

/* Editorial vignette overlay for horizontal cards */
.fda-industry-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #12131A 0%, transparent 40%);
  z-index: 1;
  pointer-events: none;
  transition: background var(--transition-fast);
}

[data-theme="light"] .fda-industry-card-image::before {
  background: linear-gradient(to right, #FFFFFF 0%, transparent 40%);
}


/* ── Layout Variations for Bento Grid (Desktop) ──────────────────────────── */

/* 1. Default Standard Card (Horizontal Split) */
.fda-industry-card:not(.card-tall):not(.card-wide) {
  height: 200px;
}

.fda-industry-card:not(.card-tall) .fda-industry-card-body {
  flex: 0 0 55%;
}

.fda-industry-card:not(.card-tall) .fda-industry-card-image {
  flex: 0 0 45%;
}

/* 2. Tall Bento Card (Vertical Layout) */
.fda-industry-card.card-tall {
  grid-row: span 2;
  height: 424px;
  /* Aligned height: 200px + 24px (gap) + 200px */
  flex-direction: column;
}

.fda-industry-card.card-tall .fda-industry-card-body {
  flex: 1 1 auto;
}

.fda-industry-card.card-tall .fda-industry-card-image {
  flex: 0 0 200px;
  width: 100%;
}

/* Dynamic vignette override for bottom-aligned image */
.fda-industry-card.card-tall .fda-industry-card-image::before {
  background: linear-gradient(to bottom, #12131A 0%, transparent 40%);
}

[data-theme="light"] .fda-industry-card.card-tall .fda-industry-card-image::before {
  background: linear-gradient(to bottom, #FFFFFF 0%, transparent 40%);
}

/* 3. Wide Bento Card (Horizontal Split, Spans 2 cols) */
.fda-industry-card.card-wide {
  grid-column: span 2;
  height: 200px;
}

.fda-industry-card.card-wide .fda-industry-card-body {
  flex: 0 0 60%;
}

.fda-industry-card.card-wide .fda-industry-card-image {
  flex: 0 0 40%;
}


/* ── Responsive Refinements ──────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .fda-industries-section {
    padding: 80px 0;
  }

  .fda-industries-left {
    position: static;
    padding-right: 0;
    margin-bottom: 48px;
    text-align: center;
    align-items: center;
  }

  .fda-industries-stats {
    justify-content: center;
    width: 100%;
    max-width: 600px;
    gap: var(--spacing-xl);
  }
}

@media (max-width: 767.98px) {
  .fda-industries-left {
    align-items: flex-start;
    text-align: left;
    gap: 18px;
    margin-bottom: 36px;
  }

  .fda-industries-cta {
    padding: 13px 22px;
  }

  .fda-industries-stats {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin-top: 24px;
    padding-top: 24px;
  }

  .fda-industries-stat-item {
    flex: 1 1 92px;
    min-width: 92px;
  }

  .fda-industries-stat-num {
    font-size: 1.9rem;
  }

  .fda-industries-stat-label {
    font-size: 0.68rem;
  }

  .fda-industries-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Reset all bento spans on mobile to a unified vertical feed of premium cards */
  .fda-industry-card.card-tall,
  .fda-industry-card.card-wide {
    grid-row: auto;
    grid-column: auto;
  }

  .fda-industry-card {
    height: 184px !important;
    flex-direction: row !important;
    border-radius: 22px;
    transition:
      transform 250ms cubic-bezier(0.25, 1, 0.5, 1),
      border-color 250ms cubic-bezier(0.25, 1, 0.5, 1),
      box-shadow 250ms cubic-bezier(0.25, 1, 0.5, 1);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .fda-industry-card:active {
    transform: translateY(-1px) scale(0.995) !important;
  }

  .fda-industry-card .fda-industry-card-body {
    flex: 0 0 55% !important;
    padding: 18px 16px 18px 18px !important;
    gap: 10px !important;
    justify-content: center;
  }

  .fda-industry-card .fda-industry-card-image {
    flex: 0 0 45% !important;
    height: 100% !important;
  }

  .fda-industry-card .fda-industry-card-image img {
    height: 100%;
  }

  .fda-industry-card .fda-industry-card-content {
    gap: 6px;
  }

  .fda-industry-card .fda-industry-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .fda-industry-card .fda-industry-icon svg {
    width: 18px;
    height: 18px;
  }

  .fda-industry-card .fda-industry-card-title {
    font-size: 1rem;
    line-height: 1.15;
  }

  .fda-industry-card .fda-industry-card-desc {
    font-size: 0.79rem;
    line-height: 1.5;
    -webkit-line-clamp: 3;
  }

  /* Universal left-to-right vignette for mobile landscape cards */
  .fda-industry-card .fda-industry-card-image::before,
  .fda-industry-card.card-tall .fda-industry-card-image::before {
    background: linear-gradient(to right, #12131A 0%, transparent 40%) !important;
  }

  [data-theme="light"] .fda-industry-card .fda-industry-card-image::before,
  [data-theme="light"] .fda-industry-card.card-tall .fda-industry-card-image::before {
    background: linear-gradient(to right, #FFFFFF 0%, transparent 40%) !important;
  }
}

@media (max-width: 575.98px) {
  .fda-industry-card {
    height: 176px !important;
  }

  .fda-industry-card .fda-industry-card-body {
    padding: 15px 12px 15px 15px !important;
  }

  .fda-industry-card .fda-industry-card-desc {
    font-size: 0.76rem;
    -webkit-line-clamp: 3;
  }
}