/* JSK Forwarding - Custom Styles */

:root {
  --primary: #0B5CAB;
  --primary-dark: #0A4D8C;
  --charcoal: #0f172a;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Glassmorphism */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Capability cards */
.capability-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0.75rem;
  background: white;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  transition: all 0.25s ease;
  cursor: default;
}

.capability-card:hover {
  border-color: #0B5CAB;
  box-shadow: 0 8px 24px -4px rgba(11, 92, 171, 0.12);
  transform: translateY(-2px);
}

.capability-card .icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

/* Why cards */
.why-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.why-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 12px 40px -8px rgba(15, 23, 42, 0.1);
  transform: translateY(-4px);
}

/* Service cards */
.service-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 12px 32px -8px rgba(11, 92, 171, 0.12);
  transform: translateY(-3px);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Industry cards */
.industry-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: all 0.25s ease;
}

.industry-card:hover {
  background: white;
  border-color: #0B5CAB;
  box-shadow: 0 8px 24px -4px rgba(11, 92, 171, 0.1);
}

.industry-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: white;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0B5CAB;
  margin-bottom: 1rem;
}

/* Process steps */
.process-step {
  position: relative;
  text-align: center;
  z-index: 1;
}

.process-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #60a5fa;
  margin-bottom: 0.75rem;
}

.process-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto;
  border-radius: 1rem;
  background: rgba(11, 92, 171, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  transition: all 0.3s ease;
}

.process-step:hover .process-icon {
  background: #0B5CAB;
  color: white;
  border-color: #0B5CAB;
  transform: scale(1.08);
}

/* Form inputs */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
  font-size: 0.9375rem;
  color: #0f172a;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: #0B5CAB;
  background: white;
  box-shadow: 0 0 0 3px rgba(11, 92, 171, 0.12);
}

.form-input::placeholder {
  color: #94a3b8;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

/* Animations */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.8s ease forwards;
}

.animate-slide-up {
  animation: slide-up 0.8s ease forwards;
  opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* Navbar scrolled state */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
}

/* Smooth reveal for sections */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #0B5CAB;
  outline-offset: 2px;
}

/* Logo refinements for transparent PNG */
header img[alt*="Logo"],
footer img[alt*="Forwarding"] {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

/* Ensure transparent logo sits cleanly on glass / dark backgrounds */
.glass-card img,
footer img {
  background: transparent;
}
