/* ========================================
   WHY TRUST BLOCK
   Profile + intro + feature grid
   Customizable background via color picker
   ======================================== */

.why-trust-block {
  /* Background set inline via ACF color picker */
  padding-block: var(--space-48) var(--space-96);
  position: relative;
}

/* Top Section: Profile + Content */
.why-trust-top {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 800px;
/*   margin: 0 0 60px; */
}

/* Profile Image (Circular) */
.trust-profile-image {
  flex-shrink: 0;
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Content */
.trust-content {
  flex: 1;
  display: flex;
  flex-direction: column;
/*   gap: 16px; */
}

.trust-heading {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: #222222;
  margin: 0;
}

.trust-intro {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #555555;
  margin: 0;
  padding-block: var(--space-16) var(--space-24);
}

/* CTA Button */
.btn-trust-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cyan-hover);
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 28px;
  height: 40px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
/*   box-shadow: 0 4px 12px rgba(255, 59, 133, 0.3); */
  align-self: flex-start;
}

/* .btn-trust-cta:hover {
  background: #E22870;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 59, 133, 0.4);
} */

/* ----------------------------------------
   Features Grid (2 columns x 3 rows)
   ---------------------------------------- */
.trust-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap:20px;
  row-gap:24px;
  max-width: 1200px;
  margin: 0 auto;
  padding-top:var(--space-48);
}

/* Individual Feature Card */
.trust-feature-card {
  background: white;
  padding: var(--space-24);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trust-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Feature Icon */
.feature-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 32px;
  height: 39px;
  display: block;
  object-fit:contain;
}

/* Feature Content */
.feature-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: #222222;
  margin: 0;
}

.feature-description {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: #666666;
  margin: 0;
}

/* ----------------------------------------
   Preview Message (Editor Only)
   ---------------------------------------- */
.preview-message {
  padding: 40px 20px;
  text-align: center;
  background: white;
  border: 2px dashed #ccc;
  color: #666;
  font-size: 16px;
  border-radius: 8px;
}

/* ----------------------------------------
   Animations
   ---------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.trust-profile-image {
  animation: fadeInLeft 0.6s ease 0.1s both;
}

.trust-content {
  animation: fadeInUp 0.6s ease 0.2s both;
}

.trust-feature-card {
  animation: fadeInUp 0.6s ease both;
}

.trust-feature-card:nth-child(1) { animation-delay: 0.3s; }
.trust-feature-card:nth-child(2) { animation-delay: 0.4s; }
.trust-feature-card:nth-child(3) { animation-delay: 0.5s; }
.trust-feature-card:nth-child(4) { animation-delay: 0.6s; }
.trust-feature-card:nth-child(5) { animation-delay: 0.7s; }
.trust-feature-card:nth-child(6) { animation-delay: 0.8s; }

/* ----------------------------------------
   Responsive Breakpoints
   ---------------------------------------- */

/* Desktop (1200px - 1439px) */
@media (max-width: 1439px) {
  .trust-features-grid {
    gap: 32px;
  }
  
  .trust-feature-card {
    padding: 28px 20px;
  }
}

/* Tablet Large (1024px - 1199px) */
@media (max-width: 1199px) {
  .why-trust-block {
/*     padding: 60px 0; */
  }
  
  .why-trust-top {
    margin-bottom: 50px;
  }
  
  .trust-heading {
    font-size: 26px;
  }
  
  .trust-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .why-trust-block {
/*     padding: 50px 0; */
  }
  
  .why-trust-top {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    margin-bottom: 40px;
  }
  
  .trust-content {
    align-items: center;
  }
  
  .btn-trust-cta {
    align-self: center;
  }
  
  .profile-avatar {
    width: 120px;
    height: 120px;
  }
  
  .trust-heading {
    font-size: 24px;
  }
  
  .trust-intro {
    font-size: 14px;
  }
  
  .trust-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .feature-title {
    font-size: 17px;
  }
}

/* Mobile Large (481px - 767px) */
@media (max-width: 767px) {
  .why-trust-block {
/*     padding: 40px 0; */
	  padding-bottom: var(--space-48) !important;
  }
  
  .why-trust-top {
    gap: 20px;
/*     margin-bottom: 32px; */
	margin-bottom: unset !important;
  }
  
  .profile-avatar {
    width: 100px;
    height: 100px;
  }
  
  .trust-heading {
    font-size: 22px;
  }
  
  .trust-intro {
    font-size: 13px;
  }
  
  .btn-trust-cta {
    width: 100%;
    max-width: 280px;
  }
  
  .trust-features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
	padding-top: var(--space-48) !important;
	
  }
  
  .trust-feature-card {
    padding: 24px 20px;
  }
  
  .feature-icon {
    width: 24px;
    height: 24px;
  }
  
  .feature-icon img {
    width: 24px;
    height: 24px;
  }
  
  .feature-title {
    font-size: 16px;
  }
  
  .feature-description {
    font-size: 13px;
  }
}

/* Mobile Small (≤480px) */
@media (max-width: 480px) {
  .why-trust-block {
/*     padding: 32px 0; */
	  padding-bottom:var(--space-64);
	  
  }
  
  .profile-avatar {
    width: 90px;
    height: 90px;
  }
  
  .trust-heading {
    font-size: 20px;
  }
  
  .trust-features-grid {
    gap: 16px;
	padding-top:var(--space-64);
  }
  
  .trust-feature-card {
    padding: 20px 16px;
  }
}

/* ----------------------------------------
   Accessibility
   ---------------------------------------- */
.btn-trust-cta:focus,
.trust-feature-card:focus {
/*   outline: 3px solid #FF3B85;
  outline-offset: 3px; */
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .trust-profile-image,
  .trust-content,
  .trust-feature-card {
    animation: none;
  }
  
  .btn-trust-cta,
  .trust-feature-card,
  .btn-trust-cta:hover,
  .trust-feature-card:hover {
    transition: none;
    transform: none;
  }
}

/* ----------------------------------------
   Print Styles
   ---------------------------------------- */
@media print {
  .why-trust-block {
    padding: 20px 0;
    background: white !important;
  }
  
  .trust-feature-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .btn-trust-cta {
    display: none;
  }
}

/* ----------------------------------------
   Gutenberg Editor Styles
   ---------------------------------------- */
.block-editor-block-list__block[data-type="acf/why-trust"] {
  margin: 20px 0;
}
