/* Shiv Steel Furniture Custom Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* Apply Outfit font to the body */
body {
  font-family: 'Outfit', 'Inter', sans-serif;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-padding-top: 96px;
}

button,
a,
input,
textarea {
  transition-property: color, background-color, border-color, box-shadow, transform, opacity;
  transition-duration: 180ms;
  transition-timing-function: ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

/* Custom scrollbars for a premium look */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0f172a; /* slate-900 */
}

::-webkit-scrollbar-thumb {
  background: #334155; /* slate-700 */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2563eb; /* blue-600 */
}

/* Glassmorphism effects */
.glass-nav {
  background-color: rgba(15, 23, 42, 0.85); /* slate-900 with opacity */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-modal {
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Micro-animations and transitions */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(15, 23, 42, 0.15);
}

/* Home division cards */
.division-card {
  min-height: 380px;
  border-radius: 24px;
  border: 1px solid rgba(203, 213, 225, 0.3);
  background: #020617;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.5);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.division-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 35px 60px -15px rgba(15, 23, 42, 0.6);
}

.division-card-img {
  object-position: center;
  object-fit: cover;
}

.division-card-overlay {
  background: linear-gradient(to top, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.7) 50%, rgba(15, 23, 42, 0.3) 100%);
}

.division-card-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.1;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.division-card-text {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 24px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.division-card-cta {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.floating-whatsapp {
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 1rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* Hide scrollbar utility for specific touch slides */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Line clamping for cards */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  .division-card {
    min-height: 260px;
    border-radius: 16px;
  }

  .division-card-img {
    width: 58%;
    left: auto;
    object-position: center;
    opacity: 0.96;
  }

  .division-card-overlay {
    background:
      linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.88) 48%, rgba(15, 23, 42, 0.32) 100%),
      linear-gradient(0deg, rgba(2, 6, 23, 0.75) 0%, rgba(2, 6, 23, 0.08) 100%);
  }

  .division-card-content {
    padding: 24px 22px;
    max-width: 70%;
  }

  .division-card-title {
    font-size: 1.35rem;
    margin-bottom: 8px;
  }

  .division-card-text {
    font-size: 0.84rem;
    line-height: 1.55;
    margin-bottom: 16px;
  }

  .division-card-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .floating-whatsapp {
    right: 1rem;
    bottom: 1rem;
    padding: 0.85rem;
  }

  .floating-whatsapp svg {
    width: 1.45rem;
    height: 1.45rem;
  }

  .floating-whatsapp span {
    display: none;
  }
}
