/* Linares Income Tax — Custom Styles */
/* These supplement Tailwind and the inline styles in index.html */

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

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f7f3f8; }
::-webkit-scrollbar-thumb { background: #d9bdd7; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #bf8fb8; }

/* Selection color */
::selection { background: #d9bdd7; color: #270f20; }

/* Prevent layout shift on images */
img { max-width: 100%; height: auto; }

/* 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;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Print styles */
@media print {
  nav, #contact, .btn-primary, .btn-outline { display: none; }
  body { color: #000; background: #fff; }
  .service-card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
}

/* Mobile menu animation helper */
.menu-line { transition: all 0.3s ease; }
#menu-btn.active .menu-line:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
#menu-btn.active .menu-line:nth-child(2) { opacity: 0; }
#menu-btn.active .menu-line:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); width: 20px; }

/* Nav height fix for fixed positioning */
#navbar { top: 0; }
body { padding-top: 0; }
@media (min-width: 768px) {
  body { padding-top: 0; }
}

/* Subtle amber accent line under section headings */
section h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, #fbbf24, transparent);
  margin-top: 1rem;
}
@media (max-width: 639px) {
  section h2::after { margin-left: 0; }
}
@media (min-width: 640px) {
  section h2::after { margin-left: 0; }
}
