/* Custom additions on top of the cloned Tailwind bundle (main.css) */

/* ---- Missing Tailwind utilities ----
   The scraped/compiled main.css was purged down to only the classes visible
   in the initial captured DOM snapshot, so responsive (sm:/md:/lg:) utility
   classes and a handful of base utilities never made it into the bundle.
   Hand-written here using standard Tailwind v3 default scale values. */

.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p-16 { padding: 4rem; }
.w-1\/2 { width: 50%; }
.inline { display: inline; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }

@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:inline { display: inline; }
  .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:p-10 { padding: 2.5rem; }
  .md\:p-16 { padding: 4rem; }
  .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
  .md\:space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:w-1\/2 { width: 50%; }
}

@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* ---- Scroll reveal ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Footer credit ---- */
.footer-credit {
  text-align: right;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: #9ca3af;
}
.footer-credit a {
  color: #fff;
  text-decoration: underline;
}

/* ---- Chat popup ---- */
.chat-toggle-btn {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  border: none;
  cursor: pointer;
  background: #16a34a;
  padding: 0;
}
.chat-toggle-btn:hover { transform: scale(1.05); }
.chat-toggle-btn:active { transform: scale(0.95); }
.chat-toggle-btn img.chat-avatar-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 9999px;
}
.chat-toggle-btn .chat-close-icon {
  display: none;
  color: #fff;
  width: 28px;
  height: 28px;
}
.chat-toggle-btn.is-open .chat-avatar-icon { display: none; }
.chat-toggle-btn.is-open .chat-close-icon { display: block; }
.chat-toggle-btn .online-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 0.875rem;
  height: 0.875rem;
  background: #22c55e;
  border: 2px solid #fff;
  border-radius: 9999px;
}
.chat-toggle-btn.is-open .online-dot { display: none; }

.chat-popup-card {
  display: none;
  flex-direction: column;
  width: 320px;
  max-width: calc(100vw - 2.5rem);
  max-height: 70vh;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
  overflow: hidden;
  margin-bottom: 1rem;
}
.chat-popup-card.is-open { display: flex; }

.chat-popup-header {
  background: #16a34a;
  color: #fff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.chat-popup-header .chat-header-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.chat-popup-header .chat-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.chat-popup-header .chat-header-text { flex: 1; min-width: 0; }
.chat-popup-header h3 { font-weight: 700; font-size: 1rem; margin: 0; line-height: 1.3; }
.chat-popup-header p { font-size: 0.8125rem; margin: 0.125rem 0 0; opacity: 0.9; line-height: 1.3; }
.chat-popup-close {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -0.5rem -0.5rem -0.5rem 0;
}

.chat-popup-body {
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.chat-popup-body input,
.chat-popup-body textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-size: 16px; /* prevents iOS auto-zoom */
  font-family: inherit;
  box-sizing: border-box;
}
.chat-popup-body textarea { min-height: 80px; resize: vertical; }
.chat-popup-body input:focus,
.chat-popup-body textarea:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22,163,74,0.2);
}
.chat-send-btn {
  width: 100%;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  min-height: 44px;
}
.chat-send-btn:hover { background: #15803d; }
.chat-send-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-msg {
  font-size: 0.875rem;
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  display: none;
}
.form-msg.is-visible { display: block; }
.form-msg.success { background: #dcfce7; color: #166534; }
.form-msg.error { background: #fee2e2; color: #991b1b; }

/* ---- Reviews (static crawlable) ---- */
.static-reviews {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 72rem;
  margin: 0 auto 3rem;
  text-align: left;
}
.static-review-card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.static-review-stars { color: #facc15; letter-spacing: 2px; margin-bottom: 0.5rem; }
.static-review-text { color: #374151; font-size: 0.9375rem; line-height: 1.6; margin-bottom: 0.75rem; }
.static-review-author { font-weight: 600; color: #111827; font-size: 0.875rem; }
.static-review-date { color: #9ca3af; font-size: 0.8125rem; }

/* ---- Mobile QA ---- */
@media (max-width: 480px) {
  .chat-popup-card { width: calc(100vw - 2rem); }
}

/* ---- Contact detail rows: prevent long email/phone text from overflowing on narrow viewports ---- */
.bg-white.rounded-2xl.p-8.shadow-sm.border.border-gray-100.mb-8 .space-y-6 > div {
  min-width: 0;
}
.bg-white.rounded-2xl.p-8.shadow-sm.border.border-gray-100.mb-8 .space-y-6 > div > a,
.bg-white.rounded-2xl.p-8.shadow-sm.border.border-gray-100.mb-8 .space-y-6 > div > span {
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

/* ---- Mobile nav menu ---- */
.mobile-nav-menu {
  display: none;
}
.mobile-nav-menu.is-open {
  display: block;
}
.mobile-nav-menu a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
