/* =========================================================
   SOLUTIONS 
   ========================================================= */

/* ===== SECTION ===== */

.solutions {
  position: relative;
}

/* =========================================================
   INTRO
   ========================================================= */

.solution-intro-block {
  padding-top: 70px;
  border-top: none;
}

.solution-intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.solution-intro-text {
  max-width: 680px;
}

.solutions .intro {
  margin-top: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== INTRO IMAGE ===== */

.solution-intro-image {
  display: flex;
  justify-content: center;
}

.solution-intro-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  box-shadow: 0 20px 50px var(--shadow-card-soft);
}

/* =========================================================
   QUICK LINKS
   ========================================================= */

.opmode-links {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


/* =========================================================
   SOLUTION BLOCKS
   ========================================================= */
/* =========================================================
   SOLUTIONS (FINAL – STABLE & CLEAN)
   ========================================================= */

/* ===== SECTION ===== */

.solutions {
  position: relative;
}

/* =========================================================
   INTRO
   ========================================================= */

.solution-intro-block {
  padding-top: 70px;
  border-top: none;
}

.solution-intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.solution-intro-text {
  max-width: 680px;
}

.solutions .intro {
  margin-top: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== INTRO IMAGE ===== */

.solution-intro-image {
  width: 100%;
  text-align: center;
}

.solution-intro-image img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  box-shadow: 0 20px 50px var(--shadow-card-soft);
}

/* =========================================================
   QUICK LINKS
   ========================================================= */

.opmode-links {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================================================
   SOLUTION BLOCKS
   ========================================================= */


/* =========================================================
   SOLUTIONS – FINAL STABLE VERSION (NO nth-child!)
   ========================================================= */

/* ===== SECTION ===== */

.solutions {
  position: relative;
}

/* =========================================================
   INTRO
   ========================================================= */

.solution-intro-block {
  padding-top: 70px;
  border-top: none;
}

.solution-intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.solution-intro-text {
  max-width: 680px;
}

.solutions .intro {
  margin-top: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== INTRO IMAGE ===== */

.solution-intro-image {
  width: 100%;
  text-align: center;
}

.solution-intro-image img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  box-shadow: 0 20px 50px var(--shadow-card-soft);
}

/* =========================================================
   QUICK LINKS
   ========================================================= */

.opmode-links {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================================================
   SOLUTIONS BUTTONS – FINAL FIX
   ========================================================= */

.opmode-links a {
  padding: 8px 14px;
  border-radius: 20px;

  background: var(--accent) !important;
  border: 1px solid var(--accent) !important;

  color: var(--color-text-primary) !important;

  font-size: 13px;
  text-decoration: none;

  transition: all 0.2s ease;
}

.opmode-links a:hover {
  background: var(--accent-light) !important;
  border-color: var(--accent-light) !important;

  transform: translateY(-1px);
}

/* =========================================================
   SOLUTION BLOCK
   ========================================================= */

.solution-block {
  padding: 90px 0;
  border-top: 1px solid var(--border-soft);
}

/* ===== GRID ===== */

.solution-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
}

/* 🔥 prevents overflow + weird shrinking */
.solution-grid > * {
  min-width: 0;
}

/* =========================================================
   REVERSE LAYOUT (MANUAL CONTROL)
   ========================================================= */

.solution-block.reverse .solution-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.solution-block.reverse .solution-text {
  order: 2;
}

.solution-block.reverse .solution-image {
  order: 1;
}

/* =========================================================
   TEXT
   ========================================================= */

.solution-text p {
  margin-bottom: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =========================================================
   FEATURES
   ========================================================= */

.solution-features {
  margin: 25px 0 20px 20px;
  color: var(--text-muted);
}

.solution-features li {
  margin-bottom: 10px;
}

/* =========================================================
   BRANDS
   ========================================================= */

.solution-brands {
  margin-top: 25px;
}

.solution-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  opacity: 0.8;
}

.brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-list span {
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--color-overlay);
  border: 1px solid var(--border-soft);
  font-size: 12px;
  color: var(--text-main);
}

/* =========================================================
   VIDEO BUTTON
   ========================================================= */

.solution-video {
  margin-top: 20px;
}

.solution-video a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--color-accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}

.solution-video a:hover {
  background: var(--color-accent-medium);
}

/* =========================================================
   USE CASE
   ========================================================= */

.solution-usecase {
  margin-top: 20px;
  font-size: 15px;
  opacity: 0.85;
}

/* =========================================================
   IMAGE (KEY PART – NO FLEX!)
   ========================================================= */

.solution-image {
  width: 100%;
  text-align: center;
}

.solution-image img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 30px var(--shadow-card-soft);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

  .solution-intro-grid,
  .solution-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;   /* 🔥 removes vertical gaps */
  }

  /* ALWAYS IMAGE FIRST */
  .solution-image,
  .solution-intro-image {
    order: -1;
  }

  .solution-text {
    order: 1;
  }

  /* RESET reverse */
  .solution-block.reverse .solution-text,
  .solution-block.reverse .solution-image {
    order: unset;
  }

  .solution-image img,
  .solution-intro-image img {
    max-width: 75%;
  }
}