/*
Theme Name: DMV Notary 1.0.0
Theme URI: https://dmvnotary.com/
Author: Generated by AI
Author URI: https://dmvnotary.com/
Description: A fully functional WordPress theme for DMV Notary services, including custom pages, SEO, and form submission handling.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: notary, legal, business, tailwind, responsive
Text Domain: dmvnotary
*/

/* Import Tailwind CSS with fallback */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* Fallback if Tailwind doesn't load */
@import url('https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css');

/* Custom CSS Variables */
:root {
  --primary-red: #E31837;
  --primary-blue: #002868;
  --primary-red-hover: #c41830;
  --primary-blue-hover: #001f4f;
}

/* Essential Tailwind-like utilities as fallback */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-4 { margin-top: 1rem; }
.text-center { text-align: center; }
.text-white { color: white; }
.text-gray-600 { color: #4B5563; }
.text-gray-300 { color: #D1D5DB; }
.text-gray-400 { color: #9CA3AF; }
.text-gray-700 { color: #374151; }
.bg-white { background-color: white; }
.bg-gray-50 { background-color: #F9FAFB; }
.bg-gray-900 { background-color: #111827; }
.bg-gray-800 { background-color: #1F2937; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-16 { height: 4rem; }
.h-12 { height: 3rem; }
.h-8 { height: 2rem; }
.h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }
.w-6 { width: 1.5rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-tight { line-height: 1.25; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.hover\:bg-gray-100:hover { background-color: #F3F4F6; }
.hover\:text-primary-blue:hover { color: var(--primary-blue); }
.hover\:text-primary-red:hover { color: var(--primary-red); }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--primary-blue); }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }
.transform { transform: translateX(0) translateY(0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-top-3 { top: -0.75rem; }
.left-1\/2 { left: 50%; }
.border { border-width: 1px; }
.border-gray-300 { border-color: #D1D5DB; }
.border-gray-700 { border-color: #374151; }
.border-t { border-top-width: 1px; }
.pt-8 { padding-top: 2rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-1 { padding-bottom: 0.25rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.rows-4 { grid-template-rows: repeat(4, minmax(0, 1fr)); }
.rows-6 { grid-template-rows: repeat(6, minmax(0, 1fr)); }

/* Grid utilities */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.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\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.md\:col-span-2 { grid-column: span 2 / span 2; }

/* Responsive utilities */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid { display: grid; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:space-x-6 > * + * { margin-left: 1.5rem; }
  .md\:space-y-2 > * + * { margin-top: 0.5rem; }
  .md\:px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
  .md\:pt-2 { padding-top: 0.5rem; }
  .md\:pb-3 { padding-bottom: 0.75rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Custom Styles */
.bg-primary-red {
  background-color: var(--primary-red);
}

.bg-primary-blue {
  background-color: var(--primary-blue);
}

.text-primary-red {
  color: var(--primary-red);
}

.text-primary-blue {
  color: var(--primary-blue);
}

.hover\:bg-primary-red:hover {
  background-color: var(--primary-red-hover);
}

.hover\:bg-primary-blue:hover {
  background-color: var(--primary-blue-hover);
}

/* Hero Section */
.hero-section {
  background-image: url('https://images.unsplash.com/photo-1560520653-9e0e4c89eb11?auto=format&fit=crop&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 600px;
}

/* Service Cards */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(0, 40, 104, 0.1);
}

/* Button Styles */
.btn-primary-red {
  background-color: var(--primary-red);
  color: white;
  transition: background-color 0.3s ease;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
}

/* Ensure button doesn't behave like a link */
button.btn-primary-red {
  text-decoration: none !important;
  border: none !important;
  outline: none !important;
}

.btn-primary-red:hover {
  background-color: var(--primary-red-hover);
}

.btn-primary-blue {
  background-color: var(--primary-blue);
  color: white;
  transition: background-color 0.3s ease;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary-blue:hover {
  background-color: var(--primary-blue-hover);
}

/* Navigation */
.nav-link {
  transition: color 0.3s ease;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--primary-red);
}

.nav-link.active {
  color: var(--primary-red);
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    min-height: 400px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Form Validation */
.form-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-success {
  color: #059669;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Additional utility classes */
.bg-opacity-50 { background-color: rgba(0, 0, 0, 0.5); }
.bg-black { background-color: black; }
.bg-cover { background-size: cover; }
.bg-center { background-position: center; }
.bg-no-repeat { background-repeat: no-repeat; }
.ring-2 { box-shadow: 0 0 0 2px var(--primary-red); }
.flex-wrap { flex-wrap: wrap; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.gap-3 { gap: 0.75rem; }
.gap-6 { gap: 1.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.max-w-none { max-width: none; }
.prose { color: #374151; }
.prose-lg { font-size: 1.125rem; line-height: 1.75rem; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { color: #111827; font-weight: 600; }
.prose p { margin-bottom: 1.25em; }
.prose ul { margin-bottom: 1.25em; padding-left: 1.625em; }
.prose li { margin-bottom: 0.5em; }

/* Modal Overlay Styles */
#contact-modal {
  display: none;
}
#contact-modal.active {
  display: flex;
}
#contact-modal .bg-white {
  max-height: 90vh;
  overflow-y: auto;
}
#contact-modal .btn-primary-red {
  background-color: #E31837;
  color: #fff;
  border: none;
  transition: background 0.2s;
}
#contact-modal .btn-primary-red:hover {
  background-color: #b9152b;
}
#contact-modal .contact-form input,
#contact-modal .contact-form textarea,
#contact-modal .contact-form select {
  font-size: 1rem;
}
#contact-modal .contact-form label {
  font-weight: 500;
}
#contact-modal .contact-form {
  box-shadow: none;
  background: transparent;
  padding: 0;
}

/* Prevent line breaks in hero service area buttons */
.hero-section .single-line-btn {
  white-space: nowrap;
}

/* Sticky footer layout */
#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-content {
  flex: 1 0 auto;
}

/* Remove any default spacing that might cause white space */
body, html {
  margin: 0;
  padding: 0;
}

/* Ensure hero section starts immediately after header */
.hero-section {
  margin-top: 0;
  padding-top: 0;
}

.service-card {
  position: relative;
  border: 3px solid #E31837;
  border-radius: 1rem;
  transition: border-color 0.2s, transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.service-card:hover {
  border-color: #002868;
  border-width: 3px;
  transform: translateY(-8px);
}
.service-pill {
  position: absolute;
  left: 50%;
  top: -16px;
  transform: translateX(-50%);
  background: #E31837 !important;
  color: #fff !important;
  border-radius: 9999px;
  padding: 0.25rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  z-index: 10;
  transition: background 0.2s;
}
.service-card:hover .service-pill {
  background: #002868 !important;
}


#category-tabs button:hover, #category-tabs button.bg-primary-blue {
  color: #fff !important;
  background: #002868 !important;
}
#close-schedule-modal {
  font-size: 2rem;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
}
#close-schedule-modal:focus {
  outline: 2px solid #002868;
}
#schedule-step-1 .sticky {
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  padding-top: 1rem;
  padding-bottom: 1rem;
  z-index: 10;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}

#modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

/* Ensure step content is visible */
.schedule-step {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.schedule-step.hidden {
  display: none !important;
}

#schedule-modal {
  background: rgba(0,0,0,0.5);
}