/**
 * Elementor Compatibility Styles
 * Ensures Elementor and theme styles work together
 */

/* Elementor Container Compatibility */
.elementor-page-content,
.elementor-post-content {
    width: 100%;
}

/* Ensure theme styles don't override Elementor */
.elementor-section,
.elementor-container,
.elementor-column,
.elementor-widget {
    position: relative;
}

/* Theme colors available in Elementor - Pixel Perfect */
.elementor-widget-heading .elementor-heading-title {
    font-family: 'Bodoni Moda', serif !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
    color: #004080 !important;
}

/* Button styles that match theme exactly */
.elementor-button.elementor-button-primary {
    background-color: #004080 !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    border: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.elementor-button.elementor-button-primary:hover {
    background-color: #007ED9 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15) !important;
}

.elementor-button.elementor-button-secondary {
    background-color: #ffffff !important;
    color: #004080 !important;
    border: 1px solid #004080 !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}

.elementor-button.elementor-button-secondary:hover {
    background-color: #DAE6F2 !important;
    border-color: #004080 !important;
}

/* Text Editor - Pixel Perfect */
.elementor-widget-text-editor {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #787C7F !important;
}

.elementor-widget-text-editor p {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
    color: #787C7F !important;
    margin-bottom: 1rem !important;
}

/* Section spacing compatibility */
.elementor-section.elementor-section-boxed {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .elementor-section.elementor-section-boxed {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .elementor-section.elementor-section-boxed {
        padding: 0 2rem;
    }
}

/* Ensure theme header/footer work with Elementor */
body.elementor-page .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

body.elementor-page #page {
    padding-top: 80px; /* Adjust based on header height */
}

/* Full width sections compatibility */
.elementor-section.elementor-section-stretched {
    width: 100%;
    max-width: 100%;
}


