/* ==========================================================================
   ELITECARE TRUST & VERIFICATION BADGES
   Interactive, Responsive & Glassmorphic Verification Standards Section
   ========================================================================== */

.trust-section {
  padding: 60px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.trust-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.trust-header .badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trust-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.25;
}

.trust-header p {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.6;
}

/* Grid Layout */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Individual Badge Card */
.trust-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.trust-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0B3C5D 0%, #D4AF37 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.trust-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  border-color: #cbd5e1;
}

.trust-card:hover::before {
  opacity: 1;
}

.trust-card:focus-visible {
  outline: 3px solid #0B3C5D;
  outline-offset: 3px;
}

/* Card Icon Box */
.trust-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: #0B3C5D;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.trust-card:hover .trust-icon-box {
  transform: scale(1.1) rotate(-3deg);
  background: linear-gradient(135deg, #0B3C5D 0%, #1D70B8 100%);
  color: #ffffff;
}

.trust-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.trust-card p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 16px 0;
  line-height: 1.45;
}

.trust-action-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0B3C5D;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.2s ease;
}

.trust-card:hover .trust-action-tag {
  gap: 10px;
  color: #1D70B8;
}

/* ==========================================================================
   TRUST DETAILS MODAL
   ========================================================================== */

.trust-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.trust-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.trust-modal-card {
  background: #ffffff;
  border-radius: 24px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  tabindex: -1;
}

.trust-modal-overlay.active .trust-modal-card {
  transform: scale(1) translateY(0);
}

.trust-modal-header {
  padding: 24px;
  background: linear-gradient(135deg, #0B3C5D 0%, #1D70B8 100%);
  color: #ffffff;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.trust-modal-header-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #ffeb3b;
  flex-shrink: 0;
}

.trust-modal-title-group h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  line-height: 1.25;
}

.trust-modal-title-group p {
  font-size: 0.85rem;
  color: #e0f2fe;
  margin: 4px 0 0 0;
}

.trust-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.trust-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.trust-modal-body {
  padding: 24px;
}

.trust-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trust-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.45;
}

.trust-checklist li i {
  color: #16a34a;
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.trust-guarantee-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-guarantee-box i {
  font-size: 24px;
  color: #d97706;
  flex-shrink: 0;
}

.trust-guarantee-box p {
  margin: 0;
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.4;
}

.trust-modal-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.trust-btn-cta {
  background: linear-gradient(135deg, #0B3C5D 0%, #1D70B8 100%);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trust-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(11, 60, 93, 0.3);
  color: #ffffff;
}

/* Responsive Breakdown */
@media (max-width: 992px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .trust-header h2 {
    font-size: 1.6rem;
  }
}
