/* === Juan Lopez Tree Service — site styles === */

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Keyboard focus: visible ring everywhere; light ring on dark backgrounds */
:focus-visible { outline: 2px solid #A4243B; outline-offset: 3px; border-radius: 4px; }
header :focus-visible, footer :focus-visible, #contact :focus-visible, #reviews :focus-visible { outline-color: #D8BCAB; }
#contact form :focus-visible { outline-color: #A4243B; }

/* Skip link: first tab stop, hidden until focused */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: #A4243B; color: #fff; font-weight: 600; padding: 0.75rem 1.25rem; border-radius: 9999px;
  transition: top 150ms;
}
.skip-link:focus { top: 1rem; outline-color: #fff; }
body { -webkit-font-smoothing: antialiased; }

/* ===== Marquee (reviews) ===== */
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee 44s linear infinite;
  padding: 0 0.75rem;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Review card */
.review-card {
  flex: 0 0 auto;
  width: 360px;
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 12px 30px -10px rgba(10, 4, 8, 0.5);
  color: #4d101d; /* brand-900 */
}
@media (max-width: 640px) {
  .review-card { width: 300px; padding: 1.25rem; }
}
@media (max-width: 380px) {
  .review-card { width: 280px; }
}

/* Stars row — injected by script.js, with a min-height so layout doesn't jump */
.stars-row { display: flex; gap: 2px; color: #d6a24a; margin: 0.75rem 0; min-height: 1rem; }

/* ===== Service-area chips ===== */
.area-chip {
  display: inline-flex;
  align-items: center;
  background: #fcf8f5; /* sand-50 */
  border: 1px solid #ecdcd1; /* sand-200 */
  color: #6a1527; /* brand-800 */
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  transition: background 200ms, color 200ms, border 200ms;
  cursor: default;
}
.area-chip:hover {
  background: #f6e0e3; /* brand-100 */
  border-color: #e096a1; /* brand-300 */
  color: #4d101d;
}

a.area-chip { cursor: pointer; }

/* ===== FAQ accordion ===== */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary { color: #A4243B; }
details > .faq-body { animation: faq-open 260ms ease-out; }
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Videos ===== */
video { object-fit: cover; object-position: center center; }
/* Hero source clip is vertical (9:16); bias the crop toward the machine/crew so they stay in frame on wide screens */
.hero-video { object-position: center 58%; }

/* Hero has no color overlay, so a soft text shadow keeps the headline legible over the raw video */
.hero-text { text-shadow: 0 2px 18px rgba(0,0,0,0.55); }
.hero-text a { text-shadow: none; }

/* Follow Us: hide the decorative play icon while the video is actually playing */
.follow-video.is-playing ~ .follow-play { opacity: 0; }

/* ===== Coverage map (static inline SVG) ===== */
.coverage-wrap { height: 360px; background: #fbf6f1; }
@media (min-width: 640px) { .coverage-wrap { height: 460px; } }
@media (min-width: 1024px) { .coverage-wrap { height: 520px; } }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation-duration: 120s; }
  details > .faq-body { animation: none; }
}
