/* Custom styles that complement Tailwind CSS */

/* Base typography */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
  background-color: rgba(229, 175, 36, 0.3);
  color: #0f1525;
}

/* Smooth image rendering */
img {
  -webkit-font-smoothing: antialiased;
}

/* Focus visible styles */
:focus-visible {
  outline: 2px solid #e5af24;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .hero-slide,
  .float-1,
  .float-2,
  .float-3,
  #backToTop,
  .cta-pulse {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .navy-900, .navy-950 {
    color: #000;
  }
}

/* High contrast mode support */
@media (forced-colors: active) {
  .service-card,
  .gallery-item {
    border: 1px solid ButtonText;
  }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .gallery-item img,
  .service-icon,
  .gold-line,
  .hero-slide,
  .float-1,
  .float-2,
  .float-3 {
    transition: none !important;
    animation: none !important;
  }

  .hero-slide {
    opacity: 1 !important;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover {
    transform: none;
  }

  .gallery-item:hover img {
    transform: none;
  }

  .gallery-item .gallery-overlay {
    opacity: 0.7;
  }
}

/* Landscape phone optimization */
@media (max-height: 500px) and (orientation: landscape) {
  #hero {
    min-height: 100vh;
  }

  #hero h1 {
    font-size: 2.5rem;
  }

  #hero .mt-20 {
    margin-top: 1rem;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .font-display.text-4xl {
    font-size: 2rem;
  }
}

/* Wide screens */
@media (min-width: 1920px) {
  .max-w-7xl {
    max-width: 80rem;
  }
}
