/* Oaks of Calabasas Security — Custom Styles */

/* Base reset & typography refinements */
* {
  box-sizing: border-box;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
  background: rgba(251, 191, 36, 0.3);
  color: #f5f0f7;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

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

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

  .hero-bg {
    background-attachment: scroll;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .accent-line {
    width: 80px !important;
  }

  .btn-shine::after {
    display: none;
  }
}

/* Print styles */
@media print {
  nav, #contact-form, .hero-bg, iframe {
    display: none !important;
  }

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

  section {
    page-break-inside: avoid;
  }
}

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

/* Tablet portrait adjustments */
@media (max-width: 767px) {
  .font-serif {
    line-height: 1.1;
  }

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

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

/* Utility: ensure contrast on all interactive elements */
a, button {
  -webkit-tap-highlight-color: transparent;
}

/* Form select arrow override for cross-browser */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239e6fa9' stroke-width='2.5' 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 1rem center;
  padding-right: 2.5rem;
}
