/* Custom styles complementing Tailwind */

/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}

/* Base font */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Display font */
.font-display {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* Reveal on scroll — progressive enhancement */
/* Default state: always visible (no JS required) */
.reveal-on-scroll {
  opacity: 1;
  transform: translateY(0);
}

/* Only animate when user prefers motion and JS is running */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar scroll behavior */
.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(253, 242, 244, 0.97) !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled .nav-link {
  color: #711a31 !important;
}

.navbar.scrolled .nav-logo,
.navbar.scrolled .nav-logo svg {
  color: #711a31 !important;
}

.navbar.scrolled .mobile-toggle svg {
  stroke: #711a31 !important;
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.mobile-menu.open {
  max-height: 400px;
}

/* Primary button */
.btn-primary {
  background: linear-gradient(135deg, #c22346 0%, #9f1a39 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(159, 26, 54, 0.3);
}

/* Service card hover */
.service-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(113, 26, 49, 0.1);
}

/* Star accent decoration */
.star-accent {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #c22346;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  pointer-events: none;
}

/* Form styles */
input, textarea, select {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: white;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #c22346;
  box-shadow: 0 0 0 3px rgba(194, 35, 70, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Success message */
.form-success {
  display: none;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 500;
  margin-top: 1rem;
}

.form-success.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Accessibility: focus visible */
a:focus-visible, button:focus-visible {
  outline: 2px solid #c22346;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Mobile responsiveness tweaks */
@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 0;
  }

  .nav-logo {
    font-size: 1rem !important;
  }

  .nav-logo svg {
    width: 22px !important;
    height: 22px !important;
  }
}
