/* =============================================
   Shared styles for data-driven service pages
   Mirror of property-law / commercial-law patterns
   ============================================= */

/* ── Scenarios ─────────────────────────────── */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.scenario-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--transition);
  position: relative;
}

.scenario-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.sc-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-light);
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: 20px;
}

.sc-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.sc-icon-wrap.navy { background: var(--navy); }
.sc-icon-wrap.emerald { background: var(--emerald); }
.sc-icon-wrap.gold { background: linear-gradient(135deg, #8a6c2e, #b8933e); }

.scenario-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.scenario-card > p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.75;
  flex: 1;
}

.sc-what-we-do {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 14px 16px;
}

.sc-we-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.sc-what-we-do ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
}

.sc-what-we-do li {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.5;
}

.sc-what-we-do li::before {
  content: '✓';
  color: var(--emerald);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Full services + sidebar grid ───────────── */
.full-services-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.service-cats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.scat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.scat:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.scat.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease, box-shadow var(--transition);
}

.scat.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.scat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: var(--navy);
}

.scat-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.scat-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.scat-items {
  padding: 18px 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.scat-items span {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}

.scat-items span:nth-last-child(-n+2) {
  border-bottom: none;
}

.scat-items span::before {
  content: '←';
  font-size: 12px;
  color: var(--emerald);
  flex-shrink: 0;
}

/* ── How-to ─────────────────────────────────── */
.howto-card {
  background: rgba(31, 122, 99, 0.05);
  border: 1px solid rgba(31, 122, 99, 0.15);
  border-radius: var(--radius);
  padding: 24px;
}

.howto-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.howto-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hs {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hs-num {
  width: 26px;
  height: 26px;
  background: var(--emerald);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Related links (sidebar) ────────────────── */
.sidebar-related-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.sidebar-related-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.related-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-links a {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  text-decoration: none;
}

.related-links a::before {
  content: '←';
  font-size: 12px;
  color: var(--emerald);
}

.related-links a:hover {
  border-color: var(--emerald);
  color: var(--navy);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(11, 31, 58, 0.08));
}

/* ── FAQ ────────────────────────────────────── */
.faq-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}

.faq-list .faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-list .faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  text-align: right;
  padding: 18px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color 0.2s;
}

.faq-q:hover {
  color: var(--emerald);
}

.faq-icon {
  font-size: 22px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-q[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: var(--emerald);
}

.faq-a {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.3s;
}

.faq-a.open {
  max-height: 400px;
  padding-bottom: 18px;
}

/* ── YMYL notice ────────────────────────────── */
.ymyl-notice {
  margin-top: 40px;
  padding: 18px 22px;
  background: rgba(198, 167, 92, 0.12);
  border: 1px solid rgba(198, 167, 92, 0.35);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.ymyl-notice strong {
  color: var(--navy);
}

.ymyl-notice a {
  color: var(--emerald);
  font-weight: 600;
}

/* ── Detail content ─────────────────────────── */
.service-detail-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin: 36px 0 14px;
}

.service-detail-content h2:first-child {
  margin-top: 0;
}

.service-detail-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 16px;
}

/* Cap consultant faces — never fill sidebar width */
.sidebar-cta-card .team-faces--sidebar-cta .team-faces-avatars {
  width: auto;
  max-width: 100%;
  justify-content: center;
}

.sidebar-cta-card .team-faces--sidebar-cta .team-faces-avatar {
  flex: 0 0 48px !important;
  width: 48px !important;
  height: 48px !important;
  max-width: 48px;
  max-height: 48px;
  aspect-ratio: 1;
  margin-right: -10px !important;
}

.sidebar-cta-card .team-faces--sidebar-cta .team-faces-avatar:last-child {
  margin-right: 0 !important;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .scenarios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .full-services-layout {
    grid-template-columns: 1fr;
  }

  .service-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .sidebar-cta-card {
    grid-column: 1 / -1;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .scenarios-grid {
    grid-template-columns: 1fr;
  }

  .scat-items {
    grid-template-columns: 1fr;
  }

  .scat-items span:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .scat-items span:last-child {
    border-bottom: none;
  }

  .service-sidebar {
    grid-template-columns: 1fr;
  }
}
