/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://incotec.es
 Description:  Child theme for Hello Elementor
 Author:       Incotec
 Author URI:   https://incotec.es
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  hello-elementor-child
*/

html, body {
    overflow-x: hidden;
}

body {
    color: #333333;
    font-weight: 400;
}

/* Submenu dropdown indicator (chevron) */
.elementskit-submenu-indicator {
    font-size: 0 !important;
    line-height: 0 !important;
    width: 16px !important;
    height: 16px !important;
    display: inline-block !important;
    vertical-align: middle;
    margin-left: auto !important;
    transition: transform 0.3s ease !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23002D47' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.elementskit-submenu-indicator::before {
    display: none !important;
}

/* Rotate chevron when menu is open (click only) */
.elementskit-dropdown-has:has(> .elementskit-dropdown-open) > a .elementskit-submenu-indicator {
    transform: rotate(180deg);
}

/* Megamenu Desktop Styling */
@media (min-width: 1025px) {
    .elementskit-megamenu-panel {
        width: 100vw !important;
        max-width: 1140px !important;
        right: auto !important;
        transform: none !important;
        margin: 0 auto !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 12px 0 0 0 !important;
        overflow: visible;
        font-family: inherit !important;
    }

    .elementskit-megamenu-panel * {
        font-family: inherit !important;
    }

    .elementskit-megamenu-panel > .elementor {
        background: #f8faf9;
        border: 1px solid #e8eeeb;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
        overflow: hidden;
    }

    /* Reset inner containers */
    .elementskit-megamenu-panel .e-con {
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .elementskit-megamenu-panel .e-con-inner {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    /* Divider at top */
    .elementskit-megamenu-panel > .elementor > .e-con:first-child {
        padding: 0 !important;
    }

    .elementskit-megamenu-panel .elementor-widget-divider {
        display: none !important;
    }

    /* 3-column layout */
    .elementskit-megamenu-panel > .elementor > .e-con:last-child > .e-con-inner {
        display: flex !important;
        flex-direction: row !important;
        gap: 0 !important;
        padding: 28px 32px !important;
    }

    .elementskit-megamenu-panel > .elementor > .e-con:last-child > .e-con-inner > .e-con {
        flex: 1 !important;
        padding: 0 16px !important;
        border-right: 1px solid rgba(0, 0, 0, 0.06);
    }

    .elementskit-megamenu-panel > .elementor > .e-con:last-child > .e-con-inner > .e-con:last-child {
        border-right: none;
    }

    .elementskit-megamenu-panel > .elementor > .e-con:last-child > .e-con-inner > .e-con:first-child {
        padding-left: 0 !important;
    }

    .elementskit-megamenu-panel > .elementor > .e-con:last-child > .e-con-inner > .e-con:last-child {
        padding-right: 0 !important;
    }

    /* Category headers */
    .elementskit-megamenu-panel .elementor-widget-text-editor strong,
    .elementskit-megamenu-panel .elementor-widget-text-editor b {
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: #002D47;
        font-weight: 700;
    }

    .elementskit-megamenu-panel .elementor-widget-text-editor p:has(strong),
    .elementskit-megamenu-panel .elementor-widget-text-editor p:has(b) {
        color: #7AD3C1;
        font-size: 13px;
        margin-bottom: 8px !important;
    }

    .elementskit-megamenu-panel .elementor-widget-text-editor hr {
        border: none;
        border-top: 2px solid #7AD3C1;
        margin: 12px 0 12px !important;
        width: 40px;
    }

    /* Links */
    .elementskit-megamenu-panel ul {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 0 16px 0 !important;
    }

    .elementskit-megamenu-panel ul li {
        margin: 0 !important;
        padding: 0 !important;
    }

    .elementskit-megamenu-panel ul li a {
        color: #002D47 !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
    }

    .elementskit-megamenu-panel ul li a:hover {
        color: #7AD3C1 !important;
    }

    /* Description text under links */
    .elementskit-megamenu-panel .elementor-widget-text-editor p:not(:has(strong)) {
        font-size: 13px;
        color: #6b7280;
        line-height: 1.5;
        margin-bottom: 16px !important;
    }
}

/* Footer background */
.elementor-location-footer:not(.elementor-motion-effects-element-type-background),
.elementor-location-footer > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-color: #1a2e44 !important;
}


/* ===== Mobile-Only Navigation Items ===== */
.mobile-only-item {
    display: none !important;
}

/* ===== Off-Canvas Close Button ===== */
.elementskit-menu-close {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin: 12px 12px 12px auto !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #172749 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}
.elementskit-menu-close:hover {
    background: #172749 !important;
    color: #fff !important;
    border-color: #172749 !important;
}
.elementskit-menu-close svg {
    display: block;
}

/* Replace default X text with SVG icon */
.elementskit-menu-close {
    font-size: 0 !important;
    line-height: 0 !important;
}
.elementskit-menu-close::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

@media (max-width: 1024px) {
    /* Mobile header: logo and burger on one line */
    #incotec-header-container {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }

    #incotec-header-container > .e-con.e-child {
        width: 50% !important;
    }

    /* Fix: ElementsKit sets position:static and removes overflow on mobile,
       which couples the off-canvas menu to body scroll. Restore fixed positioning
       so the menu is viewport-independent and scrolls on its own. */
    .elementskit-menu-container.elementskit-menu-offcanvas-elements {
        position: fixed !important;
        top: 0 !important;
        height: 100% !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Make dropdown indicator cover entire menu item so tap anywhere opens dropdown */
    .elementskit-dropdown-has > a {
        position: relative;
    }
    .elementskit-dropdown-has > a .elementskit-submenu-indicator {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background-position: right 12px center !important;
        background-size: 16px !important;
        z-index: 1;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        background-color: transparent !important;
        transform: none !important;
    }
    /* Swap to upward chevron when open (no rotation on overlay) */
    .elementskit-dropdown-has:has(> .elementskit-dropdown-open) > a .elementskit-submenu-indicator {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 10l4-4 4 4' fill='none' stroke='%23002D47' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
        transform: none !important;
    }

    /* Show mobile-only items in off-canvas menu */
    .elementskit-menu-container .mobile-only-item {
        display: list-item !important;
    }

    /* Separator line */
    .mobile-only-separator {
        padding: 0 !important;
        margin: 8px 0 !important;
        pointer-events: none;
    }
    .mobile-separator-line {
        display: block;
        height: 1px;
        background: rgba(0, 0, 0, 0.12);
        margin: 0 20px;
    }

    /* CTA Button (Kontakt) */
    .mobile-only-cta {
        text-align: left;
        padding: 16px 20px 8px !important;
    }
    .mobile-cta-button {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background-color: #172749 !important;
        color: #fff !important;
        padding: 10px 35px !important;
        border-radius: 100px;
        border: 1px solid #162950;
        font-weight: 400;
        font-size: 13px;
        text-transform: capitalize;
        line-height: 1em;
        letter-spacing: 0px;
        text-decoration: none;
        width: auto;
    }
    .mobile-cta-button:hover {
        background-color: transparent !important;
        color: #172749 !important;
    }

    /* Mobile menu widget area */
    .mobile-only-widget-area {
        padding: 8px 20px 16px !important;
        list-style: none;
    }
    .mobile-only-widget-area .mobile-menu-widget {
        font-size: 13px;
        color: #6b7280;
        line-height: 1.6;
    }
    .mobile-only-widget-area .mobile-menu-widget a {
        color: #1a2e44;
        text-decoration: none;
    }
    .mobile-only-widget-area .mobile-menu-widget a:hover {
        color: #00a99d;
    }
    .mobile-only-widget-area .mobile-menu-widget strong {
        color: #1a2e44;
    }
    .mobile-only-widget-area .mobile-menu-widget-title {
        display: none;
    }

    /* Separator ausblenden wenn Dropdown offen */
    #menu-principal > li:has(.elementskit-megamenu-panel.elementskit-dropdown-open) ~ .mobile-only-separator,
    #menu-principal > li:has(.elementskit-megamenu-panel.ekit-dropdown-open-onclick) ~ .mobile-only-separator {
        display: none !important;
    }

    /* ===== Dienstleistungen Megamenu Mobile Styling ===== */
    .elementskit-megamenu-panel {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        top: auto !important;
        transform: none !important;
        position: relative !important;
        box-shadow: none !important;
        background: #fff !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 8px 0 !important;
        overflow: visible !important;
        margin: 0 !important;
    }

    .elementskit-megamenu-panel > .elementor {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .elementskit-megamenu-panel .e-con {
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        background: transparent !important;
    }

    .elementskit-megamenu-panel .e-con-inner {
        flex-direction: column !important;
        padding: 0 !important;
        gap: 0 !important;
        max-width: 100% !important;
    }

    .elementskit-megamenu-panel .elementor-widget-divider {
        display: none !important;
    }

    .elementskit-megamenu-panel hr {
        border: none !important;
        border-top: 2px solid #7AD3C1 !important;
        margin: 4px 20px 12px !important;
        width: 40px !important;
        display: block !important;
    }

    .elementskit-megamenu-panel .elementor-widget-text-editor {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Hide p elements without strong (descriptions) */
    .elementskit-megamenu-panel .elementor-widget-text-editor p {
        display: none !important;
    }

    /* Show p elements that contain strong (category headers) */
    .elementskit-megamenu-panel .elementor-widget-text-editor p:has(strong) {
        display: block !important;
        padding: 20px 20px 8px !important;
        margin: 0 !important;
        font-size: 0 !important;
        line-height: 0 !important;
        border-top: 1px solid rgba(0, 0, 0, 0.12) !important;
    }

    /* No border on first category header */
    .elementskit-megamenu-panel .e-con > .e-con-inner > .e-con:first-child .elementor-widget-text-editor p:has(strong) {
        border-top: none !important;
    }

    .elementskit-megamenu-panel .elementor-widget-text-editor p:has(strong) strong {
        font-size: 13px !important;
        line-height: 1.4 !important;
        text-transform: none;
        letter-spacing: 0;
        color: #000000 !important;
        font-weight: 600;
    }

    /* Links */
    .elementskit-megamenu-panel .elementor-widget-text-editor ul {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .elementskit-megamenu-panel .elementor-widget-text-editor ul li {
        padding: 0 !important;
        margin: 0 !important;
        font-size: 0 !important;
        line-height: 0 !important;
    }

    .elementskit-megamenu-panel .elementor-widget-text-editor ul:last-child {
        margin-bottom: 12px !important;
    }

    .elementskit-megamenu-panel .elementor-widget-text-editor ul li a {
        display: block;
        padding: 10px 20px;
        color: #1a2e44 !important;
        font-size: 13px !important;
        font-weight: 400;
        text-decoration: none;
        line-height: 1.4 !important;
    }

    .elementskit-megamenu-panel .elementor-widget-text-editor ul li a:hover {
        color: #00a99d !important;
        background: rgba(0, 0, 0, 0.04);
    }

    .elementskit-megamenu-panel .elementor-widget-text-editor ul li br {
        display: none !important;
    }

}

/* ===== Contact Form – Legal Hints & Checkboxes ===== */

/* Legal description text */
.wpcf7 .text-desc-legal {
    font-size: 13px !important;
    font-family: "Montserrat", sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    color: #6b7280 !important;
    margin-top: 16px;
    margin-bottom: 8px;
}

.wpcf7 .text-desc-legal a {
    color: #002D47 !important;
    text-decoration: underline;
}

/* Checkbox wrapper */
.wpcf7 .legal-checkbox {
    margin-bottom: 8px;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Abstand zwischen Hinweistext und erster Checkbox */
.wpcf7 .text-desc-legal + .legal-checkbox {
    margin-top: 16px;
}

.wpcf7 .legal-checkbox p {
    margin: 0;
}

/* Reset any inherited padding/margin on inner wrappers */
.wpcf7 .legal-checkbox .wpcf7-form-control-wrap,
.wpcf7 .legal-checkbox .wpcf7-form-control {
    padding: 0 !important;
    margin: 0 !important;
}

/* Flex layout on list-item (works for both acceptance & checkbox types) */
.wpcf7 .legal-checkbox .wpcf7-list-item,
.wpcf7 .legal-checkbox .wpcf7-list-item > label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    padding: 0 !important;
    margin: 0 !important;
}

/* Checkbox input */
.wpcf7 .legal-checkbox input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 3px 0 0 0;
    accent-color: #002D47;
    cursor: pointer;
}

/* Label text – unified across both checkbox types */
.wpcf7 .legal-checkbox .wpcf7-list-item-label {
    font-size: 13px !important;
    font-weight: 400 !important;
    font-family: "Montserrat", sans-serif !important;
    line-height: 1.6 !important;
    color: #6b7280 !important;
}

.wpcf7 .legal-checkbox a {
    color: #002D47 !important;
    text-decoration: underline;
}

/* Response output message */
.wpcf7 form .wpcf7-response-output {
    font-family: "Montserrat", sans-serif !important;
    font-size: 14px !important;
    font-weight: 400;
    border: none !important;
    border-radius: 8px;
    padding: 12px 16px !important;
    margin: 16px 0 !important;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    background-color: #fef2f2;
    color: #991b1b;
}

.wpcf7 form.sent .wpcf7-response-output {
    background-color: #f0fdf4;
    color: #166534;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    background-color: #fef2f2;
    color: #991b1b;
}

/* Inline field validation tips */
.wpcf7 form .wpcf7-not-valid-tip {
    font-family: "Montserrat", sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #991b1b !important;
    margin-top: 4px;
    display: block;
}

/* ──────────────────────────────────────────
 * Blog Post Typography
 * ────────────────────────────────────────── */

.elementor-location-single .elementor-widget-heading .elementor-heading-title {
    font-weight: 800 !important;
}

.single-post .elementor-location-header {
    border-bottom: 1px solid #e8eeeb;
    box-shadow: 0 2px 8px rgba(0, 45, 71, 0.06);
}

.elementor-location-single .e-con-boxed > .e-con-inner {
    max-width: 900px !important;
}

.elementor-location-single .elementor-widget-text-editor p {
    font-family: "Montserrat", sans-serif;
    line-height: 1.8;
    color: #333;
    font-size: 15px;
}

.elementor-location-single .elementor-widget-text-editor h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #002D47;
    margin: 48px 0 16px;
    padding-bottom: 12px;
    line-height: 1.25;
    border-bottom: 3px solid #7AD3C1;
}

.elementor-location-single .elementor-widget-text-editor h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: #002D47;
    margin: 36px 0 12px;
    padding-left: 14px;
    line-height: 1.3;
    border-left: 3px solid #7AD3C1;
}

.elementor-location-single .elementor-widget-text-editor h4 {
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #002D47;
    margin: 28px 0 10px;
    line-height: 1.3;
}

.elementor-location-single .elementor-widget-text-editor strong {
    color: #002D47;
}

.elementor-location-single .elementor-widget-text-editor a {
    color: #7AD3C1;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.elementor-location-single .elementor-widget-text-editor a:hover {
    color: #00a99d;
}

.elementor-location-single .elementor-widget-text-editor ul,
.elementor-location-single .elementor-widget-text-editor ol {
    padding-left: 24px;
    margin: 12px 0;
}

.elementor-location-single .elementor-widget-text-editor li {
    line-height: 1.6;
    margin-bottom: 6px;
    color: #3E5B75;
}

@media (max-width: 767px) {
    .elementor-location-single .elementor-widget-text-editor h2 {
        font-size: 23px;
        margin: 36px 0 12px;
    }

    .elementor-location-single .elementor-widget-text-editor h3 {
        font-size: 18px;
        margin: 28px 0 10px;
    }

    .elementor-location-single .elementor-widget-text-editor p {
        font-size: 15px;
    }

    .elementor-location-single .elementor-widget-heading .elementor-heading-title {
        font-size: 26px !important;
        line-height: 1.25;
    }
}

/* ──────────────────────────────────────────
 * Category / Archive Pages
 * ────────────────────────────────────────── */

.category .elementor-location-header,
.archive .elementor-location-header {
    border-bottom: 1px solid #e8eeeb;
    box-shadow: 0 2px 8px rgba(0, 45, 71, 0.06);
}

.category .page-header,
.archive .page-header {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 24px;
}

.category .page-header .entry-title,
.archive .page-header .entry-title {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #3E5B75;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.category .page-header .entry-title span,
.archive .page-header .entry-title span {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #002D47;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 8px;
    line-height: 1.25;
}

.category .page-content,
.archive .page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.category .page-content article.post,
.archive .page-content article.post {
    padding: 24px 28px;
    background: #fff;
    border: 1px solid #e8eeeb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 45, 71, 0.06);
    margin-bottom: 20px;
    transition: box-shadow 0.2s ease;
}

.category .page-content article.post:hover,
.archive .page-content article.post:hover {
    box-shadow: 0 4px 16px rgba(0, 45, 71, 0.1);
}

.category .page-content .entry-title,
.archive .page-content .entry-title {
    font-family: "Montserrat", sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
}

.category .page-content .entry-title a,
.archive .page-content .entry-title a {
    color: #002D47;
    text-decoration: none;
    transition: color 0.2s ease;
}

.category .page-content .entry-title a:hover,
.archive .page-content .entry-title a:hover {
    color: #7AD3C1;
}

.category .page-content article.post > p,
.archive .page-content article.post > p {
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #3E5B75;
    margin: 0;
}

@media (max-width: 767px) {
    .category .page-header,
    .archive .page-header {
        padding: 28px 16px 20px;
    }

    .category .page-header .entry-title span,
    .archive .page-header .entry-title span {
        font-size: 24px;
    }

    .category .page-content,
    .archive .page-content {
        padding: 0 16px 40px;
    }

    .category .page-content .entry-title,
    .archive .page-content .entry-title {
        font-size: 19px;
    }

    .category .page-content article.post,
    .archive .page-content article.post {
        padding: 20px;
    }
}

/* ──────────────────────────────────────────
 * Breadcrumb (ElementsKit)
 * ────────────────────────────────────────── */

.ekit-breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 16px 10px 0 !important;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.ekit-breadcrumb li {
    color: #3E5B75;
}

.ekit-wid-con .ekit-breadcrumb > li {
    color: #3E5B75 !important;
}

.ekit-breadcrumb li a {
    color: #3E5B75;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ekit-breadcrumb li a:hover {
    color: #002D47;
}

.ekit-breadcrumb li.brd_sep {
    color: #3E5B75;
    margin: 0 8px;
    font-size: 12px;
}

.ekit-breadcrumb li:last-child {
    color: #002D47;
    font-weight: 600;
}

@media (max-width: 767px) {
    .ekit-breadcrumb {
        font-size: 13px;
    }

    .ekit-breadcrumb li.brd_sep {
        margin: 0 6px;
    }
}

/* ──────────────────────────────────────────
 * Tables (WYSIWYG / Elementor content)
 * ────────────────────────────────────────── */

.elementor-widget-text-editor table,
.incotec-info-box table,
.incotec-faq table,
.incotec-case-study table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    margin: 16px 0;
}

.elementor-widget-text-editor table th,
.incotec-info-box table th,
.incotec-faq table th,
.incotec-case-study table th {
    background-color: #002D47;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-align: left;
    padding: 12px 16px;
}

.elementor-widget-text-editor table td,
.incotec-info-box table td,
.incotec-faq table td,
.incotec-case-study table td {
    padding: 10px 16px;
    border-bottom: 1px solid #e8eeeb;
    color: #002D47;
}

.elementor-widget-text-editor table tr:nth-child(even) td,
.incotec-info-box table tr:nth-child(even) td,
.incotec-faq table tr:nth-child(even) td,
.incotec-case-study table tr:nth-child(even) td {
    background-color: #f8faf9;
}

@media (max-width: 767px) {
    .elementor-widget-text-editor table,
    .incotec-info-box table,
    .incotec-faq table,
    .incotec-case-study table {
        font-size: 13px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .elementor-widget-text-editor table th,
    .elementor-widget-text-editor table td,
    .incotec-info-box table th,
    .incotec-info-box table td,
    .incotec-faq table th,
    .incotec-faq table td,
    .incotec-case-study table th,
    .incotec-case-study table td {
        padding: 8px 12px;
        white-space: nowrap;
    }
}
