/* Custom Stylesheet & Design System for hvaccarlsbadca.com */

/* Base Overrides & Typography */
:root {
  --color-primary: #0284c7;
  --color-primary-dark: #0369a1;
  --color-accent: #e11d48;
  --color-dark: #0f172a;
  color-scheme: light;
}

html {
  max-width: 100vw;
  overflow-x: hidden;
  color-scheme: light;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: #334155;
  background-color: #f8fafc;
  line-height: 1.65;
  max-width: 100vw;
  overflow-x: hidden;
}

table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Heading Hierarchy & Styling */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
}

.prose h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.prose h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.prose ul, .prose ol {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose li::before {
  content: "✓";
  position: absolute;
  left: 0.875rem;
  top: 0.875rem;
  width: 1.25rem;
  height: 1.25rem;
  background-color: #0284c7;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.7rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prose a:not([class*="bg-"]):not([class*="text-white"]):not([class*="no-underline"]) {
  color: #0284c7;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:not([class*="bg-"]):not([class*="text-white"]):not([class*="no-underline"]):hover {
  color: #0369a1;
}

.prose a[class*="bg-"],
.prose a.no-underline {
  text-decoration: none !important;
}

/* High-Contrast Table Styling */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose thead th {
  background-color: #0f172a !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  text-align: left;
  padding: 0.875rem 1.25rem;
  border: 1px solid #1e293b;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prose td {
  padding: 0.875rem 1.25rem;
  border: 1px solid #e2e8f0;
  font-size: 0.95rem;
}

.prose tbody tr:nth-child(even) {
  background-color: #f1f5f9;
}

.prose tbody tr:hover {
  background-color: #e2e8f0;
}

/* Mobile Viewport Defense */
.mobile-header-logo {
  max-width: calc(100% - 56px) !important;
}

.sticky-call-bar-btn {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Call to Action Pulse Animation */
@keyframes cta-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.animate-cta {
  animation: cta-pulse 3s infinite ease-in-out;
}
