/* Custom styles for J Allen Studio */

/* Smooth focus visible outlines */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #3aa382;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection color */
::selection {
  background: rgba(58, 163, 130, 0.3);
  color: #f0f3f9;
}

/* Base transitions for all interactive elements */
a, button {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Image loading placeholder */
img {
  background: linear-gradient(135deg, #1a2448 0%, #0f162d 100%);
  min-height: 100px;
}

/* Mobile menu link hover */
.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3aa382;
  transition: width 0.3s ease;
}

.mobile-link:hover::after {
  width: 100%;
}

/* Service card icon container */
.service-card > div:first-child {
  transition: background 0.3s ease;
}

.service-card:hover > div:first-child {
  background: rgba(58, 163, 130, 0.2) !important;
}

/* Gallery image lazy load fallback */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Prevent layout shift on select dropdown */
select {
  background-color: transparent;
}

/* Ensure contrast on all text elements */
.text-white\/70 {
  color: rgba(255, 255, 255, 0.7);
}

.text-white\/60 {
  color: rgba(255, 255, 255, 0.6);
}

.text-white\/55 {
  color: rgba(255, 255, 255, 0.55);
}

.text-white\/50 {
  color: rgba(255, 255, 255, 0.5);
}

.text-white\/40 {
  color: rgba(255, 255, 255, 0.4);
}

.text-white\/30 {
  color: rgba(255, 255, 255, 0.3);
}

.text-white\/25 {
  color: rgba(255, 255, 255, 0.25);
}

.text-white\/20 {
  color: rgba(255, 255, 255, 0.2);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .font-serif {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  h1 {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .service-card {
    padding: 1.5rem;
  }

  #contactForm {
    padding: 1.5rem;
  }
}

/* Print styles */
@media print {
  .fixed, .mobile-menu, #navbar {
    position: static !important;
  }

  body {
    background: white;
    color: black;
  }
}
