/* Custom styles */
html {
    scroll-behavior: smooth;
}

/* Form input styles */
input, textarea {
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    width: 100%;
    font-size: 16px; /* Förhindrar iOS zoom vid fokus på mobil */
    box-sizing: border-box;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Kontaktformulär och medarbetarmodal – mobilanpassning */
#contactModal,
.team-modal {
    -webkit-overflow-scrolling: touch; /* Mjuk scroll på iOS */
}
#contactModal input,
#contactModal textarea {
    min-height: 44px; /* Touch-vänlig minstorlek (Apple HIG) */
}
#contactModal textarea {
    min-height: 100px;
}

/* Medarbetarmodal – långa e-postadresser bryts på mobil */
.team-modal a[href^="mailto:"] {
    word-break: break-all;
}

/* Modal animations */
.modal-enter {
    opacity: 0;
    transform: scale(0.95);
}

.modal-enter-active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 200ms ease-out, transform 200ms ease-out;
}

.modal-exit {
    opacity: 1;
    transform: scale(1);
}

.modal-exit-active {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 200ms ease-in, transform 200ms ease-in;
}

/* Image hover effects */
.team-member img {
    transition: transform 0.3s ease;
}

.team-member:hover img {
    transform: scale(1.05);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Parallax and Card Tilt Enhancements */
.parallax-hero, .parallax-service {
  will-change: transform;
  /* Ingen transition – parallax uppdateras direkt vid scroll, annars laggar logotypen på mobil */
}
/* Animated background (optional) */
body {
  background: linear-gradient(120deg, #f1f5f9 0%, #e0e7ef 100%);
  background-size: 200% 200%;
  animation: bgMove 10s ease-in-out infinite alternate;
}
@keyframes bgMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Leverantörer – horisontell auto-scroll */
.supplier-scroll-wrapper {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.supplier-scroll-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: supplierScroll 30s linear infinite;
}
.supplier-scroll-track:hover {
  animation-play-state: paused;
}
.supplier-logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  transition: transform 0.2s ease;
}
.supplier-logo-link:hover {
  transform: scale(1.08);
}
.supplier-logo {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.9;
}
.supplier-logo-link:hover .supplier-logo {
  filter: grayscale(0%);
  opacity: 1;
}
@keyframes supplierScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
} 