/* Hermanos Taxi — custom styles layered on top of Tailwind */

html { -webkit-text-size-adjust: 100%; }
body { text-rendering: optimizeLegibility; }

/* Smooth focus rings, brand-tinted */
:focus-visible { outline: 2px solid #FCD116; outline-offset: 3px; border-radius: 6px; }

/* Native FAQ summary marker hidden (we use custom +/x icon) */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* Smooth open animation */
details[open] > div { animation: fadeIn .25s ease-out; }
@keyframes fadeIn { from { opacity:0; transform: translateY(-4px); } to { opacity:1; transform: translateY(0); } }

/* Marquee fix: pause on hover */
.animate-marquee:hover { animation-play-state: paused; }

/* Reveal on scroll (used by JS via IntersectionObserver) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease-out, transform .7s ease-out; will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Better tap target on mobile sticky bar */
@media (hover: none) {
  a, button { -webkit-tap-highlight-color: rgba(252, 209, 22, .25); }
}

/* Print: hide chrome, keep content */
@media print {
  header, footer, .fixed, .sticky, [data-mobile-toggle], [data-mobile-menu] { display: none !important; }
  body { color: #000; }
}

/* Pretty scrollbars on desktop */
@media (min-width: 768px) {
  html { scrollbar-width: thin; scrollbar-color: #FCD116 #0B0B12; }
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: #0B0B12; }
  ::-webkit-scrollbar-thumb { background: #FCD116; border-radius: 6px; border: 2px solid #0B0B12; }
}

/* Reduced motion */
@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; }
}

/* Inline-svg currentColor stars in testimonials look brighter than fill is */
[data-counter] { font-variant-numeric: tabular-nums; }

/* Subtle gradient on tariff table on hover for desktop */
@media (min-width: 768px) {
  table tbody tr { transition: background-color .2s ease; }
}

/* Fix iOS sticky-bar safe area */
@supports (padding: max(0px)) {
  .pb-safe { padding-bottom: max(0.625rem, env(safe-area-inset-bottom)); }
}

/* Selection */
::selection { background: #FCD116; color: #0B0B12; }
