
/* Custom styles for conversion optimization */
.phone-button {
  animation: pulse 2s infinite;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.phone-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.sticky-phone {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* AI Generated Content Styling */
/* Paragraph styling for content sections */
.text-lg p, .text-gray-600 p, .content-section p {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  color: #505869;
  font-weight: 400;
}

.content-section p:last-child {
  margin-bottom: 0;
}

/* Heading styles for AI content */
.content-section h2, .text-lg h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1a1f2e;
  margin-top: 2rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #ff6b35;
  position: relative;
}

.content-section h2:first-child {
  margin-top: 0;
}

.content-section h2::before {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ff6b35, #ff8c42);
}

.content-section h3, .text-lg h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #3d4556;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid #ff6b35;
  background: linear-gradient(90deg, rgba(255, 107, 53, 0.1), transparent);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* List styling for AI content */
.content-section ul, .text-lg ul {
  margin: 1.5rem 0;
  padding-left: 0;
  list-style: none;
}

.content-section ul li, .text-lg ul li {
  position: relative;
  padding: 0.75rem 0 0.75rem 2rem;
  margin-bottom: 0.5rem;
  background: rgba(255, 107, 53, 0.05);
  border-radius: 8px;
  border-left: 4px solid #ff6b35;
  transition: all 0.3s ease;
}

.content-section ul li:hover, .text-lg ul li:hover {
  background: rgba(255, 107, 53, 0.1);
  transform: translateX(4px);
}

.content-section ul li::before, .text-lg ul li::before {
  content: "\2713";
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  color: #10b981;
  font-weight: bold;
  font-size: 1rem;
}

.content-section ol, .text-lg ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
  counter-reset: custom-counter;
}

.content-section ol li, .text-lg ol li {
  counter-increment: custom-counter;
  position: relative;
  padding: 0.75rem 0 0.75rem 1.5rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 107, 53, 0.05);
  border-radius: 8px;
  border-left: 4px solid #ff6b35;
}

.content-section ol li::before, .text-lg ol li::before {
  content: counter(custom-counter);
  position: absolute;
  left: -2rem;
  top: 0.75rem;
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: white;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.875rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Table styling for pricing and data */
.content-section table, .text-lg table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background: white;
}

.content-section table thead, .text-lg table thead {
  background: linear-gradient(135deg, #2a3142, #1a1f2e);
  color: white;
}

.content-section table th, .text-lg table th {
  padding: 1.25rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.content-section table td, .text-lg table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.95rem;
  line-height: 1.6;
}

.content-section table tbody tr:nth-child(even), .text-lg table tbody tr:nth-child(even) {
  background: rgba(255, 107, 53, 0.02);
}

.content-section table tbody tr:hover, .text-lg table tbody tr:hover {
  background: rgba(255, 107, 53, 0.08);
  transform: scale(1.005);
  transition: all 0.3s ease;
}

.content-section table tbody tr:last-child td, .text-lg table tbody tr:last-child td {
  border-bottom: none;
}

/* Special styling for pricing tables */
.content-section table.pricing, .text-lg table.pricing {
  margin: 2rem 0;
}

.content-section table.pricing th:first-child, .text-lg table.pricing th:first-child {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
}

.content-section table.pricing td:first-child, .text-lg table.pricing td:first-child {
  font-weight: 600;
  color: #1a1f2e;
  background: rgba(255, 107, 53, 0.05);
}

/* Responsive table design */
@media (max-width: 768px) {
  .content-section table, .text-lg table {
    font-size: 0.875rem;
  }

  .content-section table th, .text-lg table th,
  .content-section table td, .text-lg table td {
    padding: 0.75rem 0.5rem;
  }

  /* Stack table on very small screens */
  @media (max-width: 480px) {
    .content-section table, .text-lg table {
      display: block;
      overflow-x: auto;
      white-space: nowrap;
    }
  }
}

/* Performance optimizations */
* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  loading: lazy;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .sticky-phone {
    bottom: 10px;
    right: 10px;
  }

  .phone-button {
    padding: 12px 24px !important;
    font-size: 16px !important;
  }

  h1 { font-size: 2rem !important; }
  h2 { font-size: 1.75rem !important; }
  h3 { font-size: 1.5rem !important; }

  /* Adjust content typography for mobile */
  .content-section h2, .text-lg h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
  }

  .content-section h3, .text-lg h3 {
    font-size: 1.25rem;
    margin-top: 1.25rem;
  }

  .content-section p, .text-lg p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }

  .content-section ul li, .text-lg ul li,
  .content-section ol li, .text-lg ol li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin-bottom: 0.5rem;
  }
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus states for better accessibility */
a:focus, button:focus {
  outline: 2px solid #ff6b35;
  outline-offset: 2px;
}

/* ============================================
   BLOG POST SPECIFIC STYLING
   ============================================ */

/* Blog hero section */
.hero-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.6);
  padding: 3rem 2rem;
  text-align: center;
  width: 100%;
  backdrop-filter: blur(2px);
}

.hero-overlay h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.blog-meta {
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 1rem;
}

.blog-meta i {
  margin-right: 0.5rem;
}

/* Blog article container */
article.content-section {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2.5rem;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
}

/* Prose styling for blog content */
article.prose {
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #3d4556;
  line-height: 1.8;
}

article.prose h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1f2e;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #ff6b35;
  position: relative;
}

article.prose h2:first-of-type {
  margin-top: 0;
}

article.prose h2::before {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #ff6b35, #ff8c42);
}

article.prose h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ff6b35;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

article.prose p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #505869;
}

article.prose strong {
  color: #1a1f2e;
  font-weight: 600;
}

article.prose a {
  color: #ff6b35;
  text-decoration: underline;
  transition: color 0.2s;
}

article.prose a:hover {
  color: #ff8c42;
}

/* Blog-specific components */
.expert-quote, .highlight-box, .cta-box {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 140, 66, 0.05));
  border-left: 4px solid #ff6b35;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.expert-quote i {
  color: #ff6b35;
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.key-takeaways {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
  border: 2px solid #10b981;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 12px;
}

.key-takeaways li {
  padding-left: 0 !important;
  background: transparent !important;
  border-left: none !important;
}

/* FAQ section styling */
.faq-section {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

.faq-item {
  background: #f9fafb !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 12px !important;
  padding: 0 !important;
  margin-bottom: 1.5rem !important;
  transition: all 0.3s ease !important;
  overflow: hidden !important;
}

.faq-item:hover {
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.15) !important;
  border-color: #ff6b35 !important;
  transform: translateY(-2px) !important;
}

.faq-item h3 {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  padding: 1rem 1.5rem !important;
  padding-left: 3.5rem !important;
  border: none !important;
  border-left: none !important;
  background: linear-gradient(135deg, #2a3142 0%, #1a1f2e 100%) !important;
  color: white !important;
  position: relative !important;
  border-radius: 0 !important;
}

.faq-item h3::before {
  content: "Q:" !important;
  position: absolute !important;
  left: 1rem !important;
  font-weight: 900 !important;
  font-size: 1.5rem !important;
  opacity: 0.9 !important;
  color: #ff6b35 !important;
}

.faq-item > div {
  background: white !important;
}

.faq-item > div > div {
  padding: 1.5rem !important;
  background: white !important;
}

.faq-item p {
  color: #3d4556 !important;
  margin-bottom: 0 !important;
  line-height: 1.7 !important;
  position: relative !important;
  padding-left: 2.5rem !important;
}

.faq-item p::before {
  content: "A:" !important;
  position: absolute !important;
  left: 0 !important;
  font-weight: 700 !important;
  color: #ff6b35 !important;
  font-size: 1.2rem !important;
}

/* Blog CTA box */
.cta-box {
  background: linear-gradient(135deg, #2a3142, #1a1f2e);
  color: white;
  text-align: center;
  padding: 2.5rem;
  margin: 3rem 0;
  border-radius: 12px;
  border-left: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-box h3 {
  color: white;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

/* Responsive blog styling */
@media (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 1.875rem;
  }

  article.content-section {
    padding: 1.5rem;
    margin: 2rem 1rem;
  }

  article.prose h2 {
    font-size: 1.5rem;
  }

  article.prose h3 {
    font-size: 1.25rem;
  }

  article.prose p {
    font-size: 1rem;
  }

  .blog-meta {
    font-size: 0.875rem;
    gap: 1rem;
  }
}
