:root {
  --bs-primary: #8B5CF6;
  --bs-primary-rgb: 139, 92, 246;
  --bs-secondary: #EC4899;
  --bs-secondary-rgb: 236, 72, 153;
  --bs-success: #10B981;
  --bs-success-rgb: 16, 185, 129;
  --bs-warning: #F59E0B;
  --bs-warning-rgb: 245, 158, 11;
  --bs-danger: #EF4444;
  --bs-danger-rgb: 239, 68, 68;
  --bs-body-color: #374151;
  --bs-body-bg: #FEFCFB;
  --bs-heading-color: #1F2937;
  --bs-link-color: #8B5CF6;
  --bs-link-hover-color: #7C3AED;
  --bs-border-color: #E5E7EB;
  --bs-border-radius: 1rem;
  --bs-body-font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bs-heading-font-family: 'Bebas Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bs-body-font-size: 16px;
  --bs-body-line-height: 1.6;
}

/* ===== BOOTSTRAP OVERRIDES TO MATCH TAILWIND EDITOR ===== */

/* Ensure HTML element has proper background */
html {
  background-color: var(--bs-body-bg);
  scroll-behavior: smooth;
}

/* Force proper body background color */
body {
  background-color: var(--bs-body-bg) !important;
  color: var(--bs-body-color) !important;
  font-family: var(--bs-body-font-family);
  font-size: var(--bs-body-font-size);
  line-height: var(--bs-body-line-height);
}

/* Override container to match Tailwind max-w-7xl (1280px) */
.container {
  max-width: 1280px !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Override section padding to match Tailwind py-16 (4rem) */
section {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

/* Disable Bootstrap typography scale - we use inline styles */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-size: inherit !important;
  font-weight: inherit !important;
}

.lead {
  font-size: inherit !important;
  font-weight: inherit !important;
}

/* Ensure proper background image positioning */
section[style*="background-image"] {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

section[style*="background-image"] .container {
  position: relative;
  z-index: 2;
}

/* Button spacing when centered/aligned */
.text-center a,
.text-end a,
.text-start a {
  margin: 0.5rem;
}

/* ===== ACCORDION CUSTOMIZATION ===== */
.faq-section .accordion-button {
  font-family: var(--bs-heading-font-family);
  color: var(--bs-heading-color);
  font-weight: 600;
  font-size: 1.125rem;
  background-color: transparent;
  border: none;
  box-shadow: none !important;
}

.faq-section .accordion-button:not(.collapsed) {
  color: var(--bs-primary);
  background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.faq-section .accordion-button::after {
  filter: none;
}

.faq-section .accordion-button:not(.collapsed)::after {
  filter: brightness(0) saturate(100%) invert(45%) sepia(87%) saturate(3089%) hue-rotate(202deg) brightness(99%) contrast(92%);
}

.faq-section .accordion-body {
  font-family: var(--bs-body-font-family);
  color: var(--bs-body-color);
  line-height: 1.6;
  padding: 1.5rem;
}

.faq-section .accordion-item {
  background-color: var(--bs-body-bg);
  border-color: var(--bs-border-color);
}

/* ============================================
   Bootstrap Grid System Protection
   ============================================ */

/* Ensure Bootstrap rows use flexbox properly */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0 !important;
}

/* Ensure columns don't get unwanted spacing */
[class*="col-"],
.col {
  margin-top: 0 !important;
  flex-shrink: 0;
}

/* Ensure row-cols classes work correctly */
[class*="row-cols-"] > * {
  flex: 0 0 auto;
  margin-top: 0 !important;
}

/* Space between elements - exclude grid rows */
section > .container > :not(.row) + :not(.row) {
  margin-top: 2rem;
}

/* Ensure Bootstrap grid rows have no top margin */
section > .container > .row {
  margin-top: 0 !important;
}


body {
  color: var(--bs-body-color);
  font-family: var(--bs-body-font-family);
  font-size: var(--bs-body-font-size);
  line-height: var(--bs-body-line-height);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--bs-heading-font-family);
  color: var(--bs-heading-color);
}

.card {
  border-radius: var(--bs-border-radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.btn {
  border-radius: var(--bs-border-radius);
  transition: all 0.3s ease;
  font-weight: 600;
}

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

/* ===== BLOG & SERVICE PAGE ENHANCEMENTS ===== */

/* Blog card hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Blog post content typography */
.blog-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

.blog-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bs-heading-color);
  font-family: var(--bs-heading-font-family);
}

.blog-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bs-heading-color);
  font-family: var(--bs-heading-font-family);
}

.blog-content p {
  margin-bottom: 1rem;
}

.blog-content ul, .blog-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

.blog-content img {
  max-height: 400px;
  width: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  margin: 2rem 0;
}

/* Related service alert */
.alert-primary {
  border-left: 4px solid var(--bs-primary);
  background: rgba(59, 130, 246, 0.05);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
}

html {
  scroll-behavior: smooth;
}

.navbar {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


/* Container centering for hero */
.hero-section .container {
  position: relative;
  z-index: 2;
}

/* Ensure proper button sizing */
.btn-lg {
  padding: 0.875rem 2.5rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

/* ===== UNIVERSAL SECTION STYLES ===== */
section[style*="background-image"] {
  position: relative;
}

section[style*="background-image"] .container {
  position: relative;
  z-index: 2;
}

/* Center-aligned button spacing */
.text-center .btn {
  margin: 0.5rem;
}
