/* Custom additions on top of the site's compiled Tailwind bundle (site.css) */

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

input, textarea {
  font-size: 16px; /* prevents iOS Safari auto-zoom on focus */
}

/* Homepage hero */
.hero-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
}
@media (max-width: 640px) {
  .hero-section {
    min-height: 70vh;
  }
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background));
}
.mobile-nav.is-open {
  display: flex;
}
.mobile-nav a {
  padding: 1rem 1.5rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  border-bottom: 1px solid hsl(var(--border));
  text-decoration: none;
}
.mobile-nav a:hover {
  color: hsl(var(--primary));
}

/* Chat popup */
.chat-panel {
  display: none;
  flex-direction: column;
  width: min(360px, calc(100vw - 2.5rem));
  max-height: min(600px, calc(100vh - 8rem));
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  overflow: hidden;
  margin-bottom: 1rem;
}
.chat-panel.is-open {
  display: flex;
}
.chat-panel__header {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  position: relative;
}
.chat-panel__avatar {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  object-fit: cover;
  object-position: top;
  border: 2px solid hsl(var(--secondary));
  flex-shrink: 0;
}
.chat-panel__title {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
}
.chat-panel__subtitle {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 0.15rem;
}
.chat-panel__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: hsl(var(--primary-foreground));
  cursor: pointer;
  padding: 0.25rem;
  line-height: 0;
}
.chat-panel__body {
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.chat-panel__body input,
.chat-panel__body textarea,
.form-field input,
.form-field textarea {
  width: 100%;
  border: none;
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}
.form-field input,
.form-field textarea {
  background: #fff;
  border: 1px solid hsl(var(--border));
}
.chat-panel__body input::placeholder,
.chat-panel__body textarea::placeholder,
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: hsl(var(--muted-foreground));
}
.chat-panel__body input:focus,
.chat-panel__body textarea:focus,
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid hsl(var(--secondary));
  outline-offset: 1px;
}
.chat-panel__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  font-weight: 700;
  border: none;
  border-radius: 9999px;
  padding: 0.9rem 1.25rem;
  cursor: pointer;
  font-size: 1rem;
}
.chat-panel__submit:hover {
  filter: brightness(0.95);
}

/* Shared form status messages */
.form-message {
  display: none;
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
}
.form-message.is-visible {
  display: block;
}
.form-message--success {
  background: hsl(84 31% 53% / 0.15);
  color: hsl(var(--primary));
  border: 1px solid hsl(84 31% 53% / 0.4);
}
.form-message--error {
  background: hsl(0 84% 60% / 0.1);
  color: hsl(0 60% 35%);
  border: 1px solid hsl(0 84% 60% / 0.3);
}
.form-message--error a {
  font-weight: 700;
  text-decoration: underline;
}

/* Inline "Message Us" card form */
.message-us-card {
  border-radius: 1.5rem;
  padding: 2.5rem;
}
.message-us-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}
.form-field input,
.form-field textarea {
  padding: 1rem 1.1rem;
}
.message-us-form .chat-panel__submit {
  padding: 1.1rem 1.25rem;
  font-size: 1.05rem;
}

/* Reviews placeholder (shown only if the fouita widget hasn't loaded/rendered) */
.reviews-placeholder {
  border: 2px dashed hsl(var(--border));
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  color: hsl(var(--muted-foreground));
}

/* 404 page */
.error-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
  padding: 4rem 1.5rem;
}

/* Scroll-reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
