/*
Theme Name: HeirSearch Pro
Description: Professional WordPress theme for heir locator and genealogical research services
Version: 1.0
Author: HeirSearch
*/

/* Tailwind CSS Base */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #374151;
  background-color: #ffffff;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #111827;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary {
  background-color: #1e3a8a;
  color: white;
}

.btn-primary:hover {
  background-color: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: #374151;
  border: 2px solid #d1d5db;
}

.btn-secondary:hover {
  border-color: #1e3a8a;
  color: #1e3a8a;
}

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
  border-radius: 12px;
}

/* Header */
.site-header {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #111827;
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: #1e3a8a;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #1e3a8a;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
  padding: 120px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-text .highlight {
  color: #1e3a8a;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #6b7280;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-feature-icon.blue { background-color: #dbeafe; color: #1e3a8a; }
.hero-feature-icon.teal { background-color: #ccfbf1; color: #0f766e; }
.hero-feature-icon.amber { background-color: #fef3c7; color: #d97706; }

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(30, 58, 138, 0.1), rgba(15, 118, 110, 0.1));
  border-radius: 24px;
  transform: rotate(3deg);
}

.hero-image-main {
  position: relative;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.hero-image-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 1.5rem;
}

.section-header p {
  font-size: 1.25rem;
  color: #6b7280;
  max-width: 800px;
  margin: 0 auto;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: #dbeafe;
  color: #1e3a8a;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background-color 0.3s ease;
}

.service-card:hover .service-icon {
  background: #bfdbfe;
}

.service-features {
  list-style: none;
  margin-top: 1.5rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #6b7280;
}

.service-features li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #1e3a8a;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
}

.process-step {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.process-step:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.process-step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.process-icon {
  width: 64px;
  height: 64px;
  background: #1e3a8a;
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-number {
  font-size: 2rem;
  font-weight: 700;
  color: #e5e7eb;
}

.process-timeline {
  display: inline-block;
  background: #dbeafe;
  color: #1e3a8a;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 1rem;
}

/* About */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.stat-item {
  text-align: center;
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: #f1f5f9;
  color: #1e3a8a;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.stat-label {
  color: #6b7280;
  font-weight: 500;
}

.about-features {
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
}

.about-feature-icon.blue { background: #dbeafe; color: #1e3a8a; }
.about-feature-icon.teal { background: #ccfbf1; color: #0f766e; }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-rating {
  display: flex;
  gap: 4px;
  margin-bottom: 1.5rem;
}

.star {
  width: 20px;
  height: 20px;
  color: #f59e0b;
  fill: currentColor;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: #374151;
}

.testimonial-author {
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.testimonial-name {
  font-weight: 600;
  color: #111827;
}

.testimonial-role {
  color: #6b7280;
  font-size: 14px;
}

.trust-badges {
  margin-top: 4rem;
  text-align: center;
}

.trust-badges p {
  color: #6b7280;
  margin-bottom: 2rem;
}

.badges-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  opacity: 0.6;
}

.badge {
  background: #e5e7eb;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  color: #374151;
}

/* Contact */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 16px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: #dbeafe;
  color: #1e3a8a;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-details h4 {
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.contact-details p {
  color: #111827;
  margin-bottom: 4px;
}

.contact-details small {
  color: #6b7280;
}

.consultation-cta {
  background: linear-gradient(135deg, #1e3a8a 0%, #0891b2 100%);
  color: white;
  padding: 2rem;
  border-radius: 16px;
}

.consultation-cta h4 {
  color: white;
  margin-bottom: 1rem;
}

.consultation-cta p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.consultation-cta .btn {
  background: white;
  color: #1e3a8a;
}

.consultation-cta .btn:hover {
  background: #f3f4f6;
}

/* Footer */
.site-footer {
  background: #111827;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  margin-bottom: 1.5rem;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 1rem;
}

.footer-brand .logo-icon {
  color: #60a5fa;
}

.footer-brand p {
  color: #d1d5db;
  margin-bottom: 1.5rem;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #d1d5db;
}

.footer-contact-icon {
  width: 20px;
  height: 20px;
  color: #60a5fa;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #60a5fa;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #374151;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: #9ca3af;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #60a5fa;
}

/* Background Colors */
.bg-white { background-color: white; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-gray-900 { background-color: #111827; }

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content,
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .badges-grid {
    flex-direction: column;
    gap: 1rem;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container,
  .container-wide {
    padding: 0 16px;
  }
  
  .hero {
    padding: 100px 0 60px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.875rem; }
  h3 { font-size: 1.5rem; }
}