/* ============================================================
   Alpha Solex LLP — component styles layered on top of Tailwind
   ============================================================ */

/* Navigation links */
.nav-link {
  padding: 0.5rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  transition: color 0.2s, background-color 0.2s;
}
.nav-link:hover {
  color: #1f7a33;
  background-color: rgba(47, 158, 68, 0.08);
}

.mobile-link {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 0.65rem;
  font-weight: 600;
  color: #334155;
}
.mobile-link:hover {
  background-color: rgba(47, 158, 68, 0.08);
  color: #1f7a33;
}

/* Header shrink state (toggled from JS) */
#site-header.is-scrolled #nav-bar {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px -12px rgba(15, 51, 87, 0.25);
}

/* Section headings */
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2f9e44;
}
.section-title {
  margin-top: 0.75rem;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0f3357;
}

/* Process steps */
.process-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 1rem;
  box-shadow: 0 8px 24px -18px rgba(15, 51, 87, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.process-step:hover {
  transform: translateX(4px);
  box-shadow: 0 14px 30px -18px rgba(47, 158, 68, 0.5);
}
.step-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #2f9e44, #1c4e80);
}
.step-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #0f3357;
}
.step-desc {
  margin-top: 0.2rem;
  font-size: 0.92rem;
  color: #64748b;
}

/* Scheme cards (mobile) */
.scheme-card {
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 8px 24px -18px rgba(15, 51, 87, 0.3);
}
.scheme-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #0f3357;
}
.scheme-row {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: #475569;
}
.scheme-row span {
  font-weight: 700;
  color: #1f7a33;
}
.scheme-note {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Why cards */
.why-card {
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.2s, background-color 0.2s;
}
.why-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
}
.why-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

/* Back-to-top button (visibility toggled from JS) */
#to-top {
  display: none;
  align-items: center;
  justify-content: center;
}
#to-top.show {
  display: flex;
}

/* Team cards */
.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px -20px rgba(15, 51, 87, 0.4);
  transition: transform 0.25s, box-shadow 0.25s;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(47, 158, 68, 0.45);
}
.team-avatar {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #2f9e44, #1c4e80);
  box-shadow: 0 10px 24px -12px rgba(47, 158, 68, 0.7);
}
.team-photo {
  margin: 0 auto;
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 10px 24px -12px rgba(47, 158, 68, 0.7);
}
.team-contact {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: #64748b;
  word-break: break-word;
  transition: color 0.2s;
}
.team-contact:hover {
  color: #1f7a33;
}

/* Contact lines */
.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 1rem;
  color: #ffffff;
  transition: opacity 0.2s;
}
.contact-line:hover {
  opacity: 0.85;
}
.contact-ico {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
}

/* Form */
.form-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}
.form-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  color: #0f172a;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.form-input:focus {
  outline: none;
  background: #ffffff;
  border-color: #2f9e44;
  box-shadow: 0 0 0 3px rgba(47, 158, 68, 0.15);
}
.form-input.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* Footer */
.footer-head {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
}
.footer-link {
  color: #cbd5e1;
  transition: color 0.2s;
}
.footer-link:hover {
  color: #ffb703;
}

/* Reveal-on-scroll animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .animate-floaty,
  .animate-spinSlow {
    animation: none !important;
  }
}
