/* ============ Archer Notary Custom Styles ============ */
/* Note: Most layout is handled by Tailwind CSS utilities.
   This file contains specialized components and fallback styles. */

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h, 80px);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #111827;
  background-color: #ffffff;
}

/* Typography - Fallback for non-Tailwind pages */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }
}

/* Pricing Table - Used on legacy pricing pages */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
}

.pricing-table thead {
  background: #1e3a8a;
  color: white;
}

.pricing-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.pricing-table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.pricing-table tbody tr:hover {
  background-color: #f9fafb;
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

/* Mobile responsive table */
@media (max-width: 768px) {
  .pricing-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

/* Service Cards - Used on services listing page */
.service-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
  text-decoration: none;
  display: block;
}

.service-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.2);
  transform: translateY(-4px);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

/* Trust Badges - Fallback styles */
.trust-badge {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.trust-badge-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  color: #f59e0b;
}

/* FAQ Accordion Styles - Used on faq.html */
.faq-item {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-question {
  padding: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
  user-select: none;
}

.faq-question:hover {
  background-color: #f9fafb;
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: #4b5563;
  line-height: 1.8;
}

/* FAQ answer lists */
.faq-answer ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

.faq-answer ul li {
  margin-bottom: 0.5rem;
}

/* Contact Form */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #374151;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

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

/* Mobile Bottom Nav Spacing */
@media (max-width: 768px) {
  body {
    padding-bottom: 60px; /* Account for mobile bottom nav */
  }
}

/* Mobile Touch Improvements */
@media (max-width: 768px) {
  /* Larger tap targets for mobile */
  button, a {
    min-height: 44px;
    min-width: 44px;
  }

  /* Better spacing on cards */
  .service-card, .faq-item {
    margin-bottom: 1.5rem;
  }
}

/* Smooth Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Loading State */
.loading {
  opacity: 0.6;
  pointer-events: none;
  cursor: wait;
}

/* Success Message */
.success-message {
  background-color: #d1fae5;
  border: 2px solid #10b981;
  color: #065f46;
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

/* Error Message */
.error-message {
  background-color: #fee2e2;
  border: 2px solid #ef4444;
  color: #991b1b;
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

/* Print Styles */
@media print {
  header, footer, .mobile-bottom-bar, .btn {
    display: none !important;
  }

  body {
    padding-bottom: 0;
  }
}
