/* =====================================================================
   Extem — ethics ("don't work with") + FAQ accordion.
   Glass cards in the site system, theme + RTL aware.
   Loads after roadmap.css.
   ===================================================================== */

/* ---------------- Don't-work-with ---------------- */
.nowork {
  padding: 90px 7% 30px;
}

.nowork-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.nowork-title,
.faq-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #0b2c46;
  text-shadow: 0 2px 16px rgba(255, 255, 255, 0.5);
}
[data-theme="dark"] .nowork-title,
[data-theme="dark"] .faq-title {
  color: #e8e8f2;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
[dir="rtl"] .nowork-title,
[dir="rtl"] .faq-title {
  font-family: "Tajawal", "Montserrat", sans-serif;
  letter-spacing: 0;
}

.nowork-lede {
  max-width: 760px;
  margin: 14px auto 0;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.7;
  color: var(--text-secondary);
}
[dir="rtl"] .nowork-lede {
  font-family: "Tajawal", "Montserrat", sans-serif;
}

.nowork-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: start;
}

.nowork-card {
  border-radius: 18px;
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-top: 3px solid rgba(214, 90, 90, 0.65);
  box-shadow: 0 8px 32px rgba(6, 60, 100, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
[data-theme="dark"] .nowork-card {
  background: rgba(17, 22, 40, 0.55);
  border-color: rgba(140, 170, 230, 0.22);
  border-top: 3px solid rgba(255, 110, 110, 0.55);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.nowork-card:hover {
  transform: translateY(-4px);
}

.nowork-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 17px;
  color: #c04545;
  background: rgba(214, 90, 90, 0.12);
  border: 1px solid rgba(214, 90, 90, 0.3);
}
[data-theme="dark"] .nowork-ico {
  color: #ff8f8f;
  background: rgba(255, 110, 110, 0.1);
  border-color: rgba(255, 110, 110, 0.3);
}

.nowork-card h3 {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}
[data-theme="dark"] .nowork-card h3 {
  color: var(--text-primary);
}
[dir="rtl"] .nowork-card h3 {
  font-family: "Tajawal", "Montserrat", sans-serif;
}

.nowork-card p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-secondary);
}
[dir="rtl"] .nowork-card p {
  font-family: "Tajawal", "Montserrat", sans-serif;
}

.nowork-outro {
  margin-top: 28px;
  font-size: 15px;
  color: var(--text-secondary);
}
[dir="rtl"] .nowork-outro {
  font-family: "Tajawal", "Montserrat", sans-serif;
}
.nowork-outro a {
  font-weight: 700;
  color: var(--primary);
}

/* ---------------- FAQ ---------------- */
.faq {
  padding: 70px 7% 110px;
}

.faq-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.faq-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: start;
}

.faq-item {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 32px rgba(6, 60, 100, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
[data-theme="dark"] .faq-item {
  background: rgba(17, 22, 40, 0.55);
  border-color: rgba(140, 170, 230, 0.22);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.faq-item.open {
  border-color: rgba(26, 163, 214, 0.55);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: start;
}
.faq-q span:first-child {
  flex: 1 1 auto;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}
[data-theme="dark"] .faq-q span:first-child {
  color: var(--text-primary);
}
[dir="rtl"] .faq-q span:first-child {
  font-family: "Tajawal", "Montserrat", sans-serif;
}
.faq-q:focus-visible {
  outline: 2px solid #1aa3d6;
  outline-offset: 3px;
  border-radius: 12px;
}

.faq-plus {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  border-radius: 50%;
  border: 1px solid rgba(5, 5, 95, 0.2);
  color: var(--primary);
  transition: transform 0.3s ease, background 0.3s ease;
}
[data-theme="dark"] .faq-plus {
  border-color: rgba(138, 180, 248, 0.35);
  color: var(--primary);
}
.faq-item.open .faq-plus {
  transform: rotate(45deg);
  background: rgba(56, 214, 245, 0.18);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.4s ease, opacity 0.3s ease;
}
.faq-a p {
  overflow: hidden;
  min-height: 0;
  margin: 0 20px;
  padding: 0 0 0 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  border-inline-start: 2px solid rgba(26, 163, 214, 0.55);
}
[dir="rtl"] .faq-a p {
  font-family: "Tajawal", "Montserrat", sans-serif;
}
.faq-item.open .faq-a {
  grid-template-rows: 1fr;
  opacity: 1;
}
.faq-item.open .faq-a p {
  margin-bottom: 20px;
  padding-top: 2px;
}

@media (max-width: 900px) {
  .nowork-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .nowork {
    padding: 70px 7% 20px;
  }
  .nowork-grid {
    grid-template-columns: 1fr;
  }
  .faq {
    padding: 60px 7% 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nowork-card:hover {
    transform: none;
  }
}
