/**
 * Pricing Section — Refined Yellow with Subtle Gradient (2025)
 * Professional, calm design inspired by trust section
 * ADHD & Autism friendly - gentle and respectful
 * Updated: Warmer yellow closer to border, elegant Poppins font
 * Layout: 2-3-2 centered diamond pattern for optimal visual balance
 */

/* ========================================
   Pricing Grid Layout — 2-3-2 Centered Pattern
   ======================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 columns for flexible centering */
  gap: 1.5rem; /* 24px gap between cards */
  max-width: 75rem; /* 1200px - optimal width for readability */
  margin: 3rem auto 0; /* Top margin + centered */
  padding: 0;
}

/* Desktop (1024px+): 2-3-2 diamond pattern */
@media (min-width: 1024px) {
  /* Row 1: Cards 1-2 (centered, each spanning 2 columns with 1-column offset) */
  .pricing-grid > .pricing-card:nth-child(1) {
    grid-column: 2 / span 2;
  }

  .pricing-grid > .pricing-card:nth-child(2) {
    grid-column: 4 / span 2;
  }

  /* Row 2: Cards 3-5 (full width, each spanning 2 columns) */
  .pricing-grid > .pricing-card:nth-child(3) {
    grid-column: 1 / span 2;
  }

  .pricing-grid > .pricing-card:nth-child(4) {
    grid-column: 3 / span 2;
  }

  .pricing-grid > .pricing-card:nth-child(5) {
    grid-column: 5 / span 2;
  }

  /* Row 3: Cards 6-7 (centered, same as row 1) */
  .pricing-grid > .pricing-card:nth-child(6) {
    grid-column: 2 / span 2;
  }

  .pricing-grid > .pricing-card:nth-child(7) {
    grid-column: 4 / span 2;
  }
}

/* Tablet (768px - 1023px): 2 columns with centered orphan */
@media (max-width: 1023px) and (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Reset desktop-specific spans */
  .pricing-grid > .pricing-card:nth-child(n) {
    grid-column: auto;
  }

  /* Center the 7th card */
  .pricing-grid > .pricing-card:nth-child(7) {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.75rem); /* Half width minus half gap */
    margin: 0 auto;
  }
}

/* Mobile (< 768px): Single column */
@media (max-width: 767px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  /* Reset all custom spans */
  .pricing-grid > .pricing-card:nth-child(n) {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }
}

/* ========================================
   Pricing Cards — Refined Yellow with Gentle Gradient
   ======================================== */
.pricing-card {
  position: relative;
  /* Very subtle gradient - warmer yellow closer to border color #F5B841 */
  background: linear-gradient(
    135deg,
    #fff4d6 0%,
    /* Warmer honey yellow - closer to border */ #fff8e3 100% /* Slightly lighter warm cream */
  ) !important;
  border: 2px solid #f5b841 !important; /* Yellow accent border like trust section */
  overflow: hidden;
  min-height: 200px; /* Ensure equal card heights */
  text-decoration: none; /* Remove link underline */
  display: flex;
  transition: all 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle radial overlay - gentle highlight on hover */
.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at top,
    rgba(245, 184, 65, 0.12) 0%,
    /* Slightly stronger glow */ transparent 65%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 350ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

/* Show overlay on hover */
.pricing-card:hover::before {
  opacity: 1;
}

/* Enhance hover with refined shadow - slightly sharper but still gentle */
.pricing-card:hover {
  box-shadow:
    0 6px 24px rgba(245, 184, 65, 0.18),
    0 2px 8px rgba(245, 184, 65, 0.12);
  transform: translateY(-2px);
  border-color: #e6a532; /* Slightly darker border on hover */
}

/* Ensure content is above overlay */
.pricing-card > * {
  position: relative;
  z-index: 1;
}

/* ========================================
   Reduced Motion Support
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .pricing-card,
  .pricing-card::before {
    transition: none !important;
  }
}

/* ========================================
   Typography — Modern Poppins Font
   Elegant, professional, non-kitschy appearance
   ======================================== */
.pricing-card h3 {
  font-family:
    'Poppins',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em; /* Tighter, more refined */
}

.pricing-card .text-2xl {
  font-family:
    'Poppins',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em; /* Even tighter for numbers */
}

.pricing-card p {
  font-family:
    'Poppins',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}
