/* ============================================================================
   CONTACT SECTION COMPONENT

   Contact information cards with email and support options.

   Purpose: Provide clear contact methods with visually appealing cards.

   Required HTML Structure:

   <section class="contact">
     <div class="container">
       <h2 class="section-title">Contact Us</h2>

       <div class="contact-grid">
         <div class="contact-item">
           <div class="contact-icon">
             <i class="fas fa-envelope"></i>
           </div>
           <h3>Email Us</h3>
           <p>
             <a href="mailto:contact@example.com">contact@example.com</a>
           </p>
           <p class="support-text">We typically respond within 24 hours</p>
         </div>

         <div class="contact-item">
           <div class="contact-icon">
             <i class="fas fa-question-circle"></i>
           </div>
           <h3>Support</h3>
           <p>
             <a href="mailto:support@example.com">support@example.com</a>
           </p>
           <p class="support-text">Get help with your account</p>
         </div>
       </div>
     </div>
   </section>

   Dependencies:
   - Font Awesome (for icons)
   - .section-title from benefits.css (or define here)

   Features:
   - Responsive 2-column grid (stacks on mobile)
   - Gradient border animation on hover
   - Icon scale effect
   - Card lift animation

   Accessibility:
   - Semantic heading hierarchy
   - Clickable email links
   - Sufficient color contrast
   - Icon alternatives via text

   Notes:
   - .section-title may already be defined in benefits.css
   - Extra padding on title for this section specifically
   - Cards have gradient border effect on hover
   ============================================================================ */

/* ===== Section Container ===== */

.contact {
  padding: 20px 0 120px;
  background: transparent;
  position: relative;
}

/* Extra padding for Contact Us section title */
.contact .section-title {
  margin-bottom: 3rem;
  padding-bottom: 1rem;
}


/* ===== Contact Grid ===== */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}


/* ===== Contact Card ===== */

.contact-item {
  text-align: center;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
  position: relative;
}

/* Gradient border effect on hover */
.contact-item::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    135deg,
    var(--sky-blue),
    var(--light-blue)
  );
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.contact-item:hover::before {
  opacity: 0.1;
}


/* ===== Contact Icon ===== */

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--sky-blue),
    var(--navy-light)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 24px;
  color: var(--white);
  transition: all var(--transition-normal);
}

.contact-item:hover .contact-icon {
  transform: scale(1.05);
}


/* ===== Contact Content ===== */

.contact-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.contact-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-item a {
  color: var(--sky-blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all var(--transition-normal);
}

.contact-item a:hover {
  text-decoration: underline;
}

.support-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}


/* ===== Responsive ===== */

@media (max-width: 768px) {
  .contact {
    padding: 20px 0 60px;
  }

  .contact .section-title {
    margin-bottom: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-item {
    padding: 2rem 1.5rem;
  }
}
