/**
 * Related Industries Section Module Styles
 * Matches live Next.js styling & design tokens
 * Comprehensive support for Light, Natural, and Dark theme button styles & text colors
 */

.morae-industry-section {
  position: relative;
  width: 100%;
  padding-top: clamp(3rem, 6vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 6rem);
  box-sizing: border-box;
}

/* ==========================================================================
   Theme Variations: Section Background & Base Text
   ========================================================================== */

/* 1. Light Theme (Default) */
.morae-industry-section,
.morae-industry-section.morae-theme-light,
.morae-industry-section.theme-light {
  background-color: #ffffff;
  color: #262626;
}

.morae-industry-section .morae-industry-title,
.morae-industry-section.morae-theme-light .morae-industry-title,
.morae-industry-section.theme-light .morae-industry-title {
  color: #262626 !important;
}

/* 2. Natural Theme */
.morae-industry-section.morae-theme-natural,
.morae-industry-section.theme-natural {
  background-color: var(--morae-bg-natural, #f5f2ef);
  color: #262626;
}

.morae-industry-section.morae-theme-natural .morae-industry-title,
.morae-industry-section.theme-natural .morae-industry-title {
  color: #262626 !important;
}

/* 3. Dark Theme */
.morae-industry-section.morae-theme-dark,
.morae-industry-section.theme-dark {
  background-color: var(--morae-bg-dark, #262626);
  color: #f5f2ef;
}

.morae-industry-section.morae-theme-dark .morae-industry-title,
.morae-industry-section.theme-dark .morae-industry-title {
  color: #f5f2ef !important;
}

/* Container */
.morae-industry-container {
  max-width: 1920px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 2.5vw, 2.5rem);
  padding-right: clamp(1rem, 2.5vw, 2.5rem);
  box-sizing: border-box;
}

/* Grid Layout */
.morae-industry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 3.5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 768px) {
  .morae-industry-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: var(--morae-gutter, clamp(1.5rem, 2.5vw, 2.5rem));
  }

  .morae-industry-media-col {
    grid-column: span 6;
  }

  .morae-industry-content-col {
    grid-column: 7 / span 6;
    align-self: center;
    padding-left: clamp(1rem, 2vw, 2.5rem);
  }
}

@media (min-width: 1024px) {
  .morae-industry-content-col {
    grid-column: 8 / span 5;
    padding-left: 0;
  }
}

/* Media Column (Square Aspect Ratio) */
.morae-industry-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--morae-radius-sm, 2px);
  background-color: var(--morae-bg-minimal, #f5f4f0);
}

.morae-industry-media-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1.03);
}

.morae-industry-media-item.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.morae-industry-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Header & Typography */
.morae-industry-header {
  margin-bottom: 0;
}

.morae-industry-topline {
  font-family: var(--morae-font, 'IBM Plex Sans', sans-serif);
  font-size: var(--morae-font-size-topline, clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem));
  line-height: 1.4;
  letter-spacing: 0em;
  font-weight: 500;
  color: var(--morae-topline-color, var(--morae-scarlet-400, #ff3600));
  margin: 0 0 0.5rem 0;
}

.morae-industry-title {
  font-family: var(--morae-font, 'IBM Plex Sans', sans-serif);
  font-size: var(--morae-font-size-display-xl, clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem));
  line-height: 1.2;
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}

.morae-industry-title strong {
  font-weight: 600;
  color: inherit;
}

/* Industry Interactive Buttons */
.morae-industry-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  margin-top: clamp(1.5rem, 2.5vw, 2.5rem);
}

.morae-industry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.479em;
  padding: 0.71856em 1.4371em 0.71856em 1em;
  font-family: var(--morae-font, 'IBM Plex Sans', sans-serif);
  font-size: var(--morae-font-size-sm, 0.9375rem);
  font-weight: 400;
  line-height: 1;
  border-radius: var(--morae-btn-radius, 2px);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  -webkit-appearance: none;
  white-space: nowrap;
}

.morae-industry-btn:focus-visible {
  outline: none;
  ring: 2px solid var(--morae-scarlet-400, #ff3600);
}

/* Icon inside Button */
.morae-industry-btn-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4371em;
  height: 1.4371em;
  flex-shrink: 0;
}

.morae-industry-btn-icon {
  width: 100%;
  height: 100%;
  fill: currentColor;
  display: block;
}

.morae-industry-btn-icon path {
  fill: currentColor;
}

/* ==========================================================================
   Buttons - Theme Specific Rules
   ========================================================================== */

/* 1. Light Theme Buttons (Default) */
.morae-industry-section .morae-industry-btn,
.morae-industry-section.morae-theme-light .morae-industry-btn,
.morae-industry-section.theme-light .morae-industry-btn {
  background-color: #f5f4f0 !important;
  border: 1px solid transparent !important;
  color: #262626 !important;
}

.morae-industry-section .morae-industry-btn .morae-industry-btn-icon,
.morae-industry-section .morae-industry-btn .morae-industry-btn-icon path,
.morae-industry-section.morae-theme-light .morae-industry-btn .morae-industry-btn-icon,
.morae-industry-section.morae-theme-light .morae-industry-btn .morae-industry-btn-icon path,
.morae-industry-section.theme-light .morae-industry-btn .morae-industry-btn-icon,
.morae-industry-section.theme-light .morae-industry-btn .morae-industry-btn-icon path {
  fill: #262626 !important;
  color: #262626 !important;
}

.morae-industry-section .morae-industry-btn:hover,
.morae-industry-section.morae-theme-light .morae-industry-btn:hover,
.morae-industry-section.theme-light .morae-industry-btn:hover {
  background-color: #ebeae6 !important;
  color: #262626 !important;
}

.morae-industry-section .morae-industry-btn.is-active,
.morae-industry-section .morae-industry-btn[aria-pressed="true"],
.morae-industry-section.morae-theme-light .morae-industry-btn.is-active,
.morae-industry-section.morae-theme-light .morae-industry-btn[aria-pressed="true"],
.morae-industry-section.theme-light .morae-industry-btn.is-active,
.morae-industry-section.theme-light .morae-industry-btn[aria-pressed="true"] {
  background-color: #262626 !important;
  border-color: #262626 !important;
  color: #d1d1d1 !important;
}

.morae-industry-section .morae-industry-btn.is-active .morae-industry-btn-icon,
.morae-industry-section .morae-industry-btn.is-active .morae-industry-btn-icon path,
.morae-industry-section .morae-industry-btn[aria-pressed="true"] .morae-industry-btn-icon,
.morae-industry-section .morae-industry-btn[aria-pressed="true"] .morae-industry-btn-icon path,
.morae-industry-section.morae-theme-light .morae-industry-btn.is-active .morae-industry-btn-icon,
.morae-industry-section.morae-theme-light .morae-industry-btn.is-active .morae-industry-btn-icon path,
.morae-industry-section.theme-light .morae-industry-btn.is-active .morae-industry-btn-icon,
.morae-industry-section.theme-light .morae-industry-btn.is-active .morae-industry-btn-icon path {
  fill: #d1d1d1 !important;
  color: #d1d1d1 !important;
}

/* 2. Natural Theme Buttons */
.morae-industry-section.morae-theme-natural .morae-industry-btn,
.morae-industry-section.theme-natural .morae-industry-btn {
  background-color: #d1d1d1 !important;
  border: 1px solid #e0deda !important;
  color: #262626 !important;
}

.morae-industry-section.morae-theme-natural .morae-industry-btn .morae-industry-btn-icon,
.morae-industry-section.morae-theme-natural .morae-industry-btn .morae-industry-btn-icon path,
.morae-industry-section.theme-natural .morae-industry-btn .morae-industry-btn-icon,
.morae-industry-section.theme-natural .morae-industry-btn .morae-industry-btn-icon path {
  fill: #262626 !important;
  color: #262626 !important;
}

.morae-industry-section.morae-theme-natural .morae-industry-btn:hover,
.morae-industry-section.theme-natural .morae-industry-btn:hover {
  background-color: #f5f4f0 !important;
  border-color: #d4d0ca !important;
  color: #262626 !important;
}

.morae-industry-section.morae-theme-natural .morae-industry-btn.is-active,
.morae-industry-section.morae-theme-natural .morae-industry-btn[aria-pressed="true"],
.morae-industry-section.theme-natural .morae-industry-btn.is-active,
.morae-industry-section.theme-natural .morae-industry-btn[aria-pressed="true"] {
  background-color: #262626 !important;
  border-color: #262626 !important;
  color: #ffffff !important;
}

.morae-industry-section.morae-theme-natural .morae-industry-btn.is-active .morae-industry-btn-icon,
.morae-industry-section.morae-theme-natural .morae-industry-btn.is-active .morae-industry-btn-icon path,
.morae-industry-section.theme-natural .morae-industry-btn.is-active .morae-industry-btn-icon,
.morae-industry-section.theme-natural .morae-industry-btn.is-active .morae-industry-btn-icon path {
  fill: #ffffff !important;
  color: #ffffff !important;
}

/* 3. Dark Theme Buttons */
.morae-industry-section.morae-theme-dark .morae-industry-media,
.morae-industry-section.theme-dark .morae-industry-media {
  background-color: #1a1a1a;
}

.morae-industry-section.morae-theme-dark .morae-industry-btn,
.morae-industry-section.theme-dark .morae-industry-btn {
  background-color: #1f1f1f !important;
  border: 1px solid #333333 !important;
  color: #f5f2ef !important;
}

.morae-industry-section.morae-theme-dark .morae-industry-btn .morae-industry-btn-icon,
.morae-industry-section.morae-theme-dark .morae-industry-btn .morae-industry-btn-icon path,
.morae-industry-section.theme-dark .morae-industry-btn .morae-industry-btn-icon,
.morae-industry-section.theme-dark .morae-industry-btn .morae-industry-btn-icon path {
  fill: #f5f2ef !important;
  color: #f5f2ef !important;
}

.morae-industry-section.morae-theme-dark .morae-industry-btn:hover,
.morae-industry-section.theme-dark .morae-industry-btn:hover {
  background-color: #2b2b2b !important;
  border-color: #444444 !important;
  color: #ffffff !important;
}

.morae-industry-section.morae-theme-dark .morae-industry-btn.is-active,
.morae-industry-section.morae-theme-dark .morae-industry-btn[aria-pressed="true"],
.morae-industry-section.theme-dark .morae-industry-btn.is-active,
.morae-industry-section.theme-dark .morae-industry-btn[aria-pressed="true"] {
  background-color: #f5f2ef !important;
  border-color: #f5f2ef !important;
  color: #262626 !important;
}

.morae-industry-section.morae-theme-dark .morae-industry-btn.is-active .morae-industry-btn-icon,
.morae-industry-section.morae-theme-dark .morae-industry-btn.is-active .morae-industry-btn-icon path,
.morae-industry-section.theme-dark .morae-industry-btn.is-active .morae-industry-btn-icon,
.morae-industry-section.theme-dark .morae-industry-btn.is-active .morae-industry-btn-icon path {
  fill: #262626 !important;
  color: #262626 !important;
}

@media (min-width: 90rem), (min-width: 1440px) {
  .morae-industry-topline {
    font-size: 1.3889vw !important;
    line-height: 1.5 !important;
  }

  .morae-industry-title {
    font-size: 2.4680556vw !important;
    line-height: 1.4 !important;
  }

  .morae-industry-btn {
    font-size: 1.15972vw !important;
    line-height: 1 !important;
  }
}

