/*
 * Cleanand - Elementor Compatibility Styles
 * Ensures Elementor widgets look consistent with the Cleanand theme design.
 */

/* Full width wrapper for Elementor pages */
.elementor-full-width-wrapper {
    width: 100%;
}

/* Remove default padding from Elementor sections when inside theme */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1200px;
}

/* Match Elementor headings to theme typography */
.elementor-widget-heading .elementor-heading-title {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Elementor button matching theme style */
.elementor-widget-button .elementor-button {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border-radius: var(--radius, 12px);
    font-weight: 600;
    transition: var(--transition, all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1));
}

/* Primary button style */
.elementor-widget-button .elementor-button.elementor-size-md {
    padding: 14px 28px;
    font-size: 1rem;
}

/* Icon box matching theme cards */
.elementor-widget-icon-box .elementor-icon-box-wrapper {
    background: var(--white, #fff);
    border-radius: var(--radius, 12px);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm, 0 4px 6px rgba(0,0,0,0.05));
    transition: var(--transition);
}

.elementor-widget-icon-box .elementor-icon-box-wrapper:hover {
    box-shadow: var(--shadow-md, 0 10px 30px rgba(0,0,0,0.08));
    transform: translateY(-4px);
}

/* Theme color presets for Elementor */
.elementor-widget .cleanand-primary {
    color: var(--primary, #0A2540);
}

.elementor-widget .cleanand-secondary {
    color: var(--secondary, #0066FF);
}

/* Ensure Elementor sections respect theme background colors */
.elementor-section[data-settings*="cleanand-bg-light"] {
    background-color: var(--bg-light, #F7F9FC);
}

/* Match pricing table to theme style */
.elementor-widget-price-table {
    border-radius: var(--radius, 12px);
    overflow: hidden;
}

/* Elementor form matching theme style */
.elementor-widget-form .elementor-field-group input,
.elementor-widget-form .elementor-field-group select,
.elementor-widget-form .elementor-field-group textarea {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border: 1px solid var(--border-color, #E3E8EE);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: var(--transition);
}

.elementor-widget-form .elementor-field-group input:focus,
.elementor-widget-form .elementor-field-group select:focus,
.elementor-widget-form .elementor-field-group textarea:focus {
    border-color: var(--secondary, #0066FF);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .elementor-section.elementor-section-boxed > .elementor-container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Canvas template - no header/footer */
body.elementor-canvas {
    background: var(--bg-body, #fff);
}
