/* Paint Pro Painting — custom styles
   Most styling lives in Tailwind utility classes in index.html.
   This file holds what Tailwind can't do cleanly: the before/after slider,
   subtle animations, focus polish, and print. */

:root {
  --brand-navy: #1e2a50;
  --brand-red: #c44040;
  --brand-cream: #f7f5f2;
}

html { scroll-behavior: smooth; }

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

/* ===== Focus visibility (accessibility) ===== */
:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Prevent horizontal overflow (belt-and-suspenders) ===== */
body { overflow-x: hidden; }

/* ===== Hero subtle fade-in ===== */
@keyframes baFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
section#top > .relative > .max-w-7xl > .max-w-3xl > * {
  animation: baFadeUp 0.7s ease-out both;
}
section#top > .relative > .max-w-7xl > .max-w-3xl > *:nth-child(2) { animation-delay: 0.1s; }
section#top > .relative > .max-w-7xl > .max-w-3xl > *:nth-child(3) { animation-delay: 0.2s; }
section#top > .relative > .max-w-7xl > .max-w-3xl > *:nth-child(4) { animation-delay: 0.3s; }
section#top > .relative > .max-w-7xl > .max-w-3xl > *:nth-child(5) { animation-delay: 0.4s; }

/* ===== Form success / error states ===== */
#formStatus.is-success { color: #0f766e; background: #ecfdf5; border: 1px solid #a7f3d0; padding: 12px 14px; border-radius: 6px; display: block; }
#formStatus.is-error   { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; padding: 12px 14px; border-radius: 6px; display: block; }

/* ===== Print-friendly (so quotes printed from the site look clean) ===== */
@media print {
  header, footer, #mobileNav, a[href^="tel:"].fixed, .ba-slider .ba-handle, .ba-slider .ba-divider { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  section { page-break-inside: avoid; }
}

/* ===== Gallery lightbox ===== */
#gallery img { cursor: zoom-in; transition: transform 0.2s ease; }
#gallery img:hover { transform: scale(1.01); }

.lightbox {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  opacity: 1; transition: opacity 0.15s ease;
}
.lightbox.hidden { display: none; }

.lightbox-img {
  max-width: 95vw; max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 25px 80px -20px rgba(0, 0, 0, 0.8);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.25); }

.lightbox-close {
  top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  font-size: 28px; line-height: 1;
}
.lightbox-prev,
.lightbox-next {
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  font-size: 36px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

body.lightbox-open { overflow: hidden; }

@media (max-width: 640px) {
  .lightbox { padding: 0.75rem; }
  .lightbox-prev, .lightbox-next { width: 42px; height: 42px; font-size: 28px; }
  .lightbox-close { width: 38px; height: 38px; font-size: 24px; top: 0.5rem; right: 0.5rem; }
}

/* ===== Review page: star rating + feedback cards ===== */
.stars {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
}
.stars__btn {
  background: transparent;
  border: 0;
  padding: 0.25rem;
  cursor: pointer;
  color: #cbd5e1; /* slate-300 */
  transition: color 0.15s ease, transform 0.15s ease;
  line-height: 0;
}
.stars__btn:hover { transform: scale(1.08); }
.stars__btn.is-active,
.stars__btn.is-hover {
  color: #f59e0b; /* amber-500 */
}

.review-card {
  max-width: 560px;
  margin: 2rem auto 0;
  padding: 1.75rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px -10px rgba(30, 42, 80, 0.25);
  text-align: center;
}
.review-card h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin: 0 0 0.5rem;
}
.review-card p {
  color: #475569; /* slate-600 */
  margin: 0 0 1.25rem;
  line-height: 1.55;
}
.review-card--negative { text-align: left; }
.review-card--negative h2,
.review-card--negative > p { text-align: center; }

.review-field {
  display: block;
  margin-bottom: 1rem;
}
.review-field > span {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-navy);
  margin-bottom: 0.35rem;
}
.review-field input,
.review-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  color: #0f172a;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.review-field input:focus,
.review-field textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(196, 64, 64, 0.18);
}
.review-field textarea { resize: vertical; min-height: 120px; }

.review-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.85rem 1.5rem;
  background: var(--brand-red);
  color: #fff;
  font-weight: 600;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.review-submit:hover { background: #A63434; }

.google-review-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  background: var(--brand-red);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.google-review-btn:hover { background: #A63434; }
