/* TBP Toowong Plumbing — Custom Styles
   Supplements Tailwind CDN with anything not easily handled inline.
   Keep this file small — prefer Tailwind utility classes where possible.
*/

/* ===== BASE ===== */
html {
  scroll-behavior: smooth;
}

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

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #e55a2b;
  color: white;
  padding: 8px 16px;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 0;
}

/* ===== MOBILE MENU TRANSITION ===== */
#mobile-menu {
  transition: opacity 0.15s ease, transform 0.15s ease;
}
#mobile-menu.is-open {
  display: block;
  animation: slideDown 0.15s ease forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== FAQ ACCORDION ===== */
.faq-content {
  transition: none; /* JS handles show/hide; no layout-shift transitions */
}

/* ===== FOCUS STATES ===== */
/* Ensure all interactive elements have visible focus rings */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #e55a2b;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== GALLERY IMAGES ===== */
/* Prevent layout shift while images load */
.aspect-square {
  position: relative;
}

/* ===== PREFERS REDUCED MOTION ===== */
@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;
  }
}
