/* =============== */
/* Global polishing */
/* =============== */

/* Smooth anchor scrolling (e.g., "Leave a Review" link) */
html {
  scroll-behavior: smooth;
}

/* Crisper text rendering */
html, body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Make images behave nicely by default */
img {
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-select: none;
}

/* =============== */
/* Focus & forms    */
/* =============== */

:root {
  /* Tailwind blue-600, used for subtle focus rings */
  --ring: #2563eb;
  --ring-shadow: rgba(37, 99, 235, 0.35);
}

/* Consistent, accessible focus styles for interactive elements */
a, button, [type="button"], [type="submit"], [role="button"] {
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: outline-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
a:focus-visible, button:focus-visible, [type="button"]:focus-visible, [type="submit"]:focus-visible, [role="button"]:focus-visible {
  box-shadow: 0 0 0 4px var(--ring-shadow);
  outline-color: var(--ring);
}

/* Gentle hover elevation for buttons/links that already use Tailwind colors */
button:hover, [type="submit"]:hover, .btn:hover, a.btn:hover {
  transform: translateY(-1px);
}

/* Form controls baseline (Tailwind classes still take precedence if present) */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  border: 1px solid #e5e7eb;            /* gray-200 */
  border-radius: 0.5rem;                 /* rounded-lg */
  padding: 0.5rem 0.75rem;               /* px-3 py-2 */
  transition: border-color 150ms ease, box-shadow 150ms ease;
  outline: 2px solid transparent;
  outline-offset: 2px;
  background-color: #fff;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 4px var(--ring-shadow);
}

/* Disable the default blue glow on mobile inputs */
input, textarea, select, button {
  -webkit-tap-highlight-color: transparent;
}

/* =============== */
/* Utilities       */
/* =============== */

/* A11y helper for screen-reader-only content */
.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* Nice shadow utility if you want a bit softer elevation on cards */
.shadow-soft {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Optional: hide ugly scrollbars on WebKit without removing scroll */
.hide-scrollbar::-webkit-scrollbar { width: 0; height: 0; }
.hide-scrollbar { scrollbar-width: none; }

/* =============== */
/* Embeds          */
/* =============== */

/* Make any map/video iframe dropped into a rounded container fill it correctly */
iframe {
  display: block;
  width: 100%;
  border: 0;
}
