/* ---------- Custom additions on top of the reused Tailwind bundle ---------- */

html { overflow-x: hidden; }

/* ---------- Call Now button ---------- */
.call-now-btn .call-number,
.call-now-btn-mobile .call-number {
  display: inline;
}
@media (max-width: 767px) {
  .call-now-btn-mobile .call-number { display: none; }
}
.ring-icon {
  animation: ring-wiggle 2.2s ease-in-out infinite;
  transform-origin: 50% 50%;
}
@keyframes ring-wiggle {
  0%, 80%, 100% { transform: rotate(0deg); }
  82% { transform: rotate(-15deg); }
  84% { transform: rotate(12deg); }
  86% { transform: rotate(-10deg); }
  88% { transform: rotate(8deg); }
  90% { transform: rotate(-4deg); }
  92% { transform: rotate(0deg); }
}

/* ---------- Mobile menu ---------- */
#mobile-menu.hidden { display: none; }
#mobile-menu a { text-decoration: none; }

/* ---------- Reviews placeholder ---------- */
.reviews-placeholder {
  max-width: 32rem;
  margin: 0 auto;
  background: rgba(255,255,255,0.08);
  border: 1px dashed rgba(255,255,255,0.35);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
}
.reviews-placeholder-icon { display: flex; justify-content: center; margin-bottom: 1rem; opacity: 0.85; }
.reviews-placeholder-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.reviews-placeholder-copy { opacity: 0.85; font-size: 0.95rem; }

/* ---------- Footer credit ---------- */
footer .credit { color: #fff; }
footer .credit a { color: #fff; text-decoration: underline; }
footer .credit a:hover { opacity: 0.85; }

/* ---------- Form notice (honest, non-success messaging) ---------- */
.form-note, .chat-form-note {
  font-size: 0.875rem;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  line-height: 1.4;
}
.form-note[data-state="error"], .chat-form-note[data-state="error"] {
  background: #fef2f2; color: #991b1b; border: 1px solid #fecaca;
}
.form-note[data-state="info"], .chat-form-note[data-state="info"] {
  background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe;
}

/* ---------- Chat widget ---------- */
.chat-widget { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 60; }

.chat-toggle-btn {
  width: 5rem; height: 5rem; border-radius: 9999px; border: none; cursor: pointer;
  background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
  position: relative; transition: transform 0.2s ease;
  padding: 0;
}
.chat-toggle-btn:hover { transform: scale(1.05); }

.chat-toggle-closed { display: flex; }
.chat-toggle-open { display: none; }
.chat-toggle-btn.is-open .chat-toggle-closed { display: none; }
.chat-toggle-btn.is-open .chat-toggle-open { display: flex; align-items: center; justify-content: center; }
.chat-toggle-btn.is-open { background: hsl(105 60% 45%); }
.chat-toggle-btn.is-open svg { color: #fff; }

.chat-avatar-circle {
  width: 100%; height: 100%; border-radius: 9999px; overflow: hidden;
  background: hsl(105 40% 92%); color: hsl(105 60% 30%);
  display: flex; align-items: center; justify-content: center;
}
.chat-avatar-circle--small { width: 2.25rem; height: 2.25rem; flex-shrink: 0; }
.chat-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 9999px; display: block; }

.chat-bubble-badge {
  position: absolute; top: -4px; right: -4px;
  width: 1.75rem; height: 1.75rem; border-radius: 9999px;
  background: hsl(105 60% 45%); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

.chat-panel {
  position: absolute; bottom: 5.5rem; right: 0;
  width: min(380px, calc(100vw - 2rem));
  background: #fff; border-radius: 1rem; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  display: flex; flex-direction: column;
}
.chat-panel[hidden] { display: none; }

.chat-panel-header {
  background: hsl(105 60% 45%); color: #fff;
  padding: 1rem 1.1rem; display: flex; align-items: center; gap: 0.75rem;
}
.chat-panel-title { display: flex; flex-direction: column; flex: 1; }
.chat-panel-title-main { font-weight: 700; font-size: 1.05rem; }
.chat-panel-title-sub { font-size: 0.78rem; color: rgba(255,255,255,0.85); }
.chat-panel-close {
  background: none; border: none; color: #fff; font-size: 1.6rem;
  line-height: 1; cursor: pointer; padding: 0 0.25rem;
}

.chat-panel-body { padding: 1.1rem 1.1rem 1.25rem; }
.chat-intro { font-size: 0.9rem; color: #4b5563; margin-bottom: 0.9rem; }

.chat-form { display: flex; flex-direction: column; gap: 0.65rem; }
.chat-field { position: relative; }
.chat-field input,
.chat-field textarea {
  width: 100%; border: 1px solid #d1d5db; border-radius: 0.5rem;
  padding: 0.6rem 0.75rem; font-size: 16px; font-family: inherit;
  box-sizing: border-box;
}
.chat-field textarea { resize: vertical; min-height: 4.5rem; }
.chat-field--icon input { padding-right: 2.4rem; }
.chat-field-icon {
  position: absolute; top: 50%; right: 0.5rem; transform: translateY(-50%);
  width: 1.5rem; height: 1.5rem; border-radius: 9999px;
  background: #ef4444; display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}

.chat-submit-btn {
  margin-top: 0.25rem; width: 100%; border: none; border-radius: 0.5rem;
  background: hsl(105 60% 45%); color: #fff; font-weight: 600;
  padding: 0.75rem 1rem; font-size: 1rem; cursor: pointer;
  transition: background 0.15s ease;
}
.chat-submit-btn:hover { background: hsl(105 60% 40%); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (max-width: 400px) {
  .chat-widget { right: 1rem; bottom: 1rem; }
  .chat-panel { right: -0.5rem; }
}

/* ---------- 404 page ---------- */
.not-found-section {
  min-height: 60vh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 4rem 1.5rem;
}
.not-found-code { font-size: 5rem; font-weight: 800; color: hsl(105 60% 45%); line-height: 1; }
.not-found-title { font-size: 1.75rem; font-weight: 700; margin: 1rem 0 0.5rem; }
.not-found-copy { color: #6b7280; max-width: 30rem; margin-bottom: 2rem; }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Ensure all form fields never trigger iOS zoom (must beat Tailwind's .text-sm on the scraped textarea) */
input, textarea, select { font-size: 16px !important; }

/* ---------- Mobile tap targets (>=44px) ---------- */
@media (max-width: 767px) {
  .call-now-btn-mobile { min-height: 44px; }
  #mobile-menu-toggle { min-width: 44px; min-height: 44px; }
  footer ul a,
  footer .credit a,
  footer .credit,
  footer p a {
    display: inline-block;
    padding: 0.55rem 0.1rem;
    min-height: 44px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
  }
  a.inline-flex, button.inline-flex,
  a[class*="h-10"], a[class*="h-9"] {
    min-height: 44px;
  }
  a[href^="tel:"] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
