/* =======================================================================
   TRUST-SAFETY.CSS - Trust & Safety Page
   Premium, reassuring, matches the design system
   ======================================================================= */

/* ===================== TABLE OF CONTENTS ===================== */
/* 01. Trust Hero Section */
/* 02. Trust Pillars - 4 Key Promises */
/* 03. Trust Detail Blocks (Alternating) */
/* 04. Safety Guidelines */
/* 05. Trust Badges Section */
/* 06. Trust FAQ - Compact Accordion */
/* 07. Emergency Contact Card */
/* 08. Legal Links Cards */
/* 09. Mobile Responsive */
/* 10. Print Styles */
/* ============================================================ */

/* ========================================================================
   01. TRUST HERO SECTION
   ======================================================================== */
.trust-hero {
  padding: 3rem 0 2rem 0;
  background: linear-gradient(135deg, var(--bg) 0%, white 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.trust-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(183, 140, 90, 0.03) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.trust-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.trust-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
  position: relative;
  padding: 0 2rem;
}

.trust-eyebrow::before,
.trust-eyebrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
  transform: translateY(-50%);
}

.trust-eyebrow::before {
  left: -20px;
}

.trust-eyebrow::after {
  right: -20px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.trust-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 3.5rem);
  line-height: 1.1;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.trust-title .dot {
  color: var(--accent);
  font-size: clamp(2.2rem, 9vw, 4rem);
  line-height: 0.8;
  margin-left: 2px;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

.trust-subtitle {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================================================
   02. TRUST PILLARS - 4 Key Promises
   ======================================================================== */
.trust-pillars {
  padding: 2.5rem 0 1.5rem 0;
  background: white;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pillar-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-light);
  box-shadow: 0 20px 30px -15px rgba(183, 140, 90, 0.15);
}

.pillar-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--accent-light) 0%,
    rgba(183, 140, 90, 0.1) 100%
  );
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.pillar-card:hover .pillar-icon {
  background: var(--accent);
  color: white;
  transform: scale(1.05) rotate(5deg);
}

.pillar-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.pillar-card p {
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.5;
  max-width: 200px;
  margin: 0 auto;
}

/* ========================================================================
   03. TRUST DETAIL BLOCKS (Alternating)
   ======================================================================== */
.trust-details {
  padding: 2rem 0 3rem 0;
  background: linear-gradient(135deg, white 0%, var(--bg) 100%);
}

.trust-detail-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
  padding: 2rem;
  background: white;
  border-radius: 32px;
  border: 1px solid var(--border-light);
  box-shadow: 0 25px 40px -20px rgba(0, 0, 0, 0.1);
}

.trust-detail-block:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .trust-detail-block {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    padding: 3rem;
  }

  .trust-detail-block.reverse {
    flex-direction: row-reverse;
  }
}

.detail-content {
  flex: 1 1 55%;
}

.detail-number {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  background: rgba(183, 140, 90, 0.1);
  padding: 0.25rem 1rem;
  border-radius: 30px;
}

.detail-content h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.2;
}

.detail-intro {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.detail-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.feature-item i {
  color: var(--accent);
  font-size: 1.2rem;
  min-width: 24px;
  margin-top: 0.2rem;
}

.feature-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.feature-item p {
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.5;
}

.detail-cta {
  margin-top: 1rem;
}

.detail-visual {
  flex: 1 1 40%;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 35px -20px rgba(0, 0, 0, 0.15);
}

.detail-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.detail-visual:hover img {
  transform: scale(1.03);
}

.visual-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  justify-content: center;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  padding: 0.5rem 1rem;
  border-radius: 40px;
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
}

.security-badge i {
  color: var(--accent);
}

/* ========================================================================
   04. SAFETY GUIDELINES
   ======================================================================== */
.safety-guidelines {
  padding: 3rem 0 4rem 0;
  background: white;
}

.guidelines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.guideline-card {
  padding: 2rem 1.5rem;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  background: white;
  box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.guideline-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-light);
  box-shadow: 0 25px 40px -20px rgba(183, 140, 90, 0.15);
}

.guideline-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.guideline-header i {
  font-size: 2rem;
  color: var(--accent);
  background: linear-gradient(
    135deg,
    var(--accent-light) 0%,
    rgba(183, 140, 90, 0.1) 100%
  );
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guideline-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.guideline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guideline-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.guideline-list li:last-child {
  margin-bottom: 0;
}

.guideline-list li i {
  min-width: 20px;
  font-size: 1rem;
  margin-top: 0.2rem;
}

.guideline-list li i.fa-check-circle {
  color: #10b981;
}

.guideline-list li i.fa-times-circle {
  color: #ef4444;
}

.guideline-list strong {
  color: var(--text-dark);
}

.client-card .guideline-header i {
  background: linear-gradient(135deg, #10b981 0%, rgba(16, 185, 129, 0.1) 100%);
  color: #10b981;
}

.provider-card .guideline-header i {
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    rgba(183, 140, 90, 0.1) 100%
  );
  color: var(--accent);
}

.warning-card .guideline-header i {
  background: linear-gradient(135deg, #ef4444 0%, rgba(239, 68, 68, 0.1) 100%);
  color: #ef4444;
}

/* ========================================================================
   05. TRUST BADGES SECTION
   ======================================================================== */
.trust-badges-section {
  padding: 2.5rem 0;
  background: linear-gradient(135deg, var(--bg) 0%, white 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.badges-header {
  text-align: center;
  margin-bottom: 2rem;
}

.badges-header h3 {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.badges-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.badge-item:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.badge-item img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.badge-item:hover img {
  filter: grayscale(0);
}

.badge-item span {
  font-size: 0.7rem;
  color: var(--text-soft);
  white-space: nowrap;
}

/* ========================================================================
   06. TRUST FAQ - Compact Accordion
   ======================================================================== */
.trust-faq {
  padding: 3rem 0 2rem 0;
  background: white;
}

.faq-grid-compact {
  max-width: 800px;
  margin: 2.5rem auto 2rem;
}

.faq-item-compact {
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  background: white;
  transition: all 0.3s ease;
}

.faq-item-compact:hover {
  border-color: var(--accent-light);
  box-shadow: 0 10px 20px -12px rgba(183, 140, 90, 0.15);
}

.faq-question-compact {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: white;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  text-align: left;
  transition: all 0.2s ease;
  gap: 1rem;
}

.faq-question-compact:hover {
  background: var(--bg);
  color: var(--accent);
}

.faq-question-compact i {
  color: var(--accent);
  font-size: 0.9rem;
  transition: transform 0.3s ease;
  min-width: 20px;
}

.faq-item-compact.active .faq-question-compact i {
  transform: rotate(45deg);
}

.faq-answer-compact {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--bg);
  border-top: 1px solid transparent;
}

.faq-item-compact.active .faq-answer-compact {
  max-height: 200px;
  border-top-color: var(--border-light);
}

.faq-answer-compact p {
  padding: 1.25rem 1.5rem;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.85rem;
  line-height: 1.6;
}

.faq-footer {
  text-align: center;
  margin-top: 1.5rem;
}

/* ========================================================================
   07. EMERGENCY CONTACT CARD
   ======================================================================== */
.emergency-contact {
  padding: 2rem 0 3rem 0;
  background: white;
}

.emergency-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, var(--bg) 0%, white 100%);
  border-radius: 32px;
  border: 1px solid var(--border-light);
  box-shadow: 0 25px 40px -20px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.emergency-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(239, 68, 68, 0.03) 0%,
    transparent 70%
  );
  pointer-events: none;
}

@media (min-width: 640px) {
  .emergency-card {
    flex-direction: row;
    text-align: left;
    padding: 2.5rem;
  }
}

.emergency-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444 0%, rgba(239, 68, 68, 0.1) 100%);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

.emergency-content {
  flex: 1;
}

.emergency-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.emergency-content p {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.emergency-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .emergency-actions {
    flex-direction: row;
    gap: 1rem;
  }
}

.emergency-actions .btn-primary {
  background: #ef4444;
  color: white;
}

.emergency-actions .btn-primary:hover {
  background: #dc2626;
}

/* ========================================================================
   08. LEGAL LINKS CARDS
   ======================================================================== */
.legal-links {
  padding: 0 0 3rem 0;
  background: white;
}

.legal-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.legal-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.legal-link-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.legal-link-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-light);
  box-shadow: 0 20px 30px -15px rgba(183, 140, 90, 0.15);
}

.legal-link-card:hover::before {
  transform: scaleX(1);
}

.legal-link-card i:first-child {
  font-size: 2rem;
  color: var(--accent);
  background: linear-gradient(
    135deg,
    var(--accent-light) 0%,
    rgba(183, 140, 90, 0.1) 100%
  );
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.legal-link-card div {
  flex: 1;
}

.legal-link-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--text-dark);
}

.legal-link-card p {
  color: var(--text-soft);
  font-size: 0.75rem;
  line-height: 1.4;
}

.legal-link-card > i:last-child {
  color: var(--accent);
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.legal-link-card:hover > i:last-child {
  transform: translateX(5px);
}

/* ========================================================================
   09. MOBILE RESPONSIVE
   ======================================================================== */
@media (max-width: 1023px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 600px;
  }
}

@media (max-width: 767px) {
  .trust-hero {
    padding: 2rem 0 1.5rem 0;
  }

  .trust-eyebrow {
    font-size: 0.6rem;
    letter-spacing: 3px;
    padding: 0 1.5rem;
  }

  .trust-eyebrow::before,
  .trust-eyebrow::after {
    width: 25px;
  }

  .trust-eyebrow::before {
    left: -15px;
  }

  .trust-eyebrow::after {
    right: -15px;
  }

  .trust-subtitle {
    font-size: 0.9rem;
    padding: 0 1rem;
  }

  .trust-pillars {
    padding: 1.5rem 0 1rem 0;
  }

  .pillar-card {
    padding: 1.25rem 0.75rem;
  }

  .pillar-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .pillar-card h3 {
    font-size: 0.9rem;
  }

  .pillar-card p {
    font-size: 0.75rem;
  }

  .trust-detail-block {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .detail-content h2 {
    font-size: 1.5rem;
  }

  .detail-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-item {
    gap: 0.5rem;
  }

  .feature-item i {
    font-size: 1rem;
  }

  .feature-item h4 {
    font-size: 0.85rem;
  }

  .feature-item p {
    font-size: 0.75rem;
  }

  .detail-visual {
    max-width: 400px;
    margin: 0 auto;
  }

  .guidelines-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .guideline-card {
    padding: 1.5rem;
  }

  .guideline-header {
    gap: 0.75rem;
  }

  .guideline-header i {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
  }

  .guideline-header h3 {
    font-size: 1rem;
  }

  .guideline-list li {
    font-size: 0.85rem;
    gap: 0.5rem;
  }

  .badges-grid {
    gap: 1.5rem;
  }

  .badge-item img {
    height: 30px;
  }

  .badge-item span {
    font-size: 0.65rem;
  }

  .faq-question-compact {
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
  }

  .faq-answer-compact p {
    padding: 1rem 1.25rem;
    font-size: 0.8rem;
  }

  .emergency-card {
    padding: 2rem 1.5rem;
  }

  .emergency-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .emergency-content h3 {
    font-size: 1.1rem;
  }

  .emergency-content p {
    font-size: 0.85rem;
  }

  .legal-links-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .legal-link-card {
    padding: 1.25rem;
  }

  .legal-link-card i:first-child {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .legal-link-card h4 {
    font-size: 0.9rem;
  }

  .legal-link-card p {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .trust-detail-block {
    padding: 1.25rem;
  }

  .detail-number {
    font-size: 0.8rem;
  }

  .detail-content h2 {
    font-size: 1.3rem;
  }

  .detail-intro {
    font-size: 0.9rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  .feature-item i {
    font-size: 0.9rem;
  }

  .feature-item h4 {
    font-size: 0.8rem;
  }

  .feature-item p {
    font-size: 0.7rem;
  }

  .pillars-grid {
    gap: 0.75rem;
  }

  .pillar-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .pillar-card h3 {
    font-size: 0.8rem;
  }

  .pillar-card p {
    font-size: 0.7rem;
  }

  .badges-grid {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .badge-item {
    flex: 0 0 calc(50% - 1rem);
  }

  .emergency-actions .btn-primary,
  .emergency-actions .btn-outline {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
  }
}

@media (max-width: 360px) {
  .trust-title {
    font-size: 2rem;
  }

  .trust-title .dot {
    font-size: 2.2rem;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .pillar-card {
    max-width: 250px;
    margin: 0 auto;
  }

  .guideline-header {
    flex-direction: column;
    text-align: center;
  }

  .guideline-list li {
    font-size: 0.8rem;
  }

  .badge-item {
    flex: 0 0 100%;
  }

  .faq-question-compact {
    font-size: 0.8rem;
    padding: 0.875rem 1rem;
  }

  .emergency-card {
    flex-direction: column;
    text-align: center;
  }

  .emergency-actions {
    flex-direction: column;
  }
}

/* ========================================================================
   10. PRINT STYLES
   ======================================================================== */
@media print {
  .top-bar,
  .main-header,
  .mobile-nav,
  .footer,
  .trust-hero::before,
  .detail-cta,
  .emergency-actions,
  .legal-links {
    display: none !important;
  }

  .trust-hero {
    background: white;
    padding: 1cm 0;
    border-bottom: 1pt solid #ddd;
  }

  .trust-detail-block {
    break-inside: avoid;
    page-break-inside: avoid;
    border: 1pt solid #ddd;
    box-shadow: none;
  }

  .pillar-card,
  .guideline-card {
    break-inside: avoid;
    page-break-inside: avoid;
    border: 1pt solid #ddd;
  }

  .detail-visual {
    max-width: 50%;
  }

  .security-badge {
    background: white;
    border: 1pt solid #000;
  }

  .faq-item-compact.active .faq-answer-compact {
    max-height: none;
  }

  .faq-question-compact i {
    display: none;
  }
}
