/**
 * Service CTA Block Styles
 * Call-to-action section with heading, description, and button
 * Based on Figma design specs: 1440x340px
 */

/* ============================================
   FORCE FULL-WIDTH DISPLAY
   ============================================ */

.wp-block-mawconsultant-service-cta {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

/* Override any parent container styles */
.site-main .wp-block-mawconsultant-service-cta,
.entry-content .wp-block-mawconsultant-service-cta,
article .wp-block-mawconsultant-service-cta {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   SERVICE CTA BASE STYLES
   ============================================ */

.service-cta {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
}

/* ============================================
   CONTAINER - FIGMA SPECS
   ============================================ */

.service-cta__container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 72px var(--container-padding-x, 400px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

/* ============================================
   CONTENT WRAPPER
   ============================================ */

.service-cta__content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 640px;
    text-align: center;
    align-items: center;
    width: 100%;
}

/* ============================================
   HEADING - FIGMA SPECS
   ============================================ */

.service-cta__heading {
    font-family: var(--font-serif, 'Gambetta', serif);
    font-size: 36px;
    font-weight: 500;
    line-height: 44px;
    letter-spacing: 0;
    color: #000000;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   DESCRIPTION PARAGRAPH
   ============================================ */

.service-cta__description {
    font-family: var(--font-sans, 'DM Sans', Arial, sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0;
    color: #051b2c;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   BUTTON STYLES - FIGMA WHATSAPP LINK
   ============================================ */

.service-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 32px;
    background-color: #051b2c;
    border: 1px solid var(--color-border, #e6e6e6);
    border-radius: var(--radius-sm, 0);
    color: var(--color-primary-foreground, #ffffff);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-sans, 'DM Sans', Arial, sans-serif);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 20px;
    text-align: center;
    white-space: nowrap;
    margin: 0 auto;
    width: 100%;
    max-width: 360px;
}

.service-cta__button:hover {
    background-color: #0a2535;
    border-color: var(--color-border, #d1d1d1);
    transform: translateY(-2px);
    opacity: 1;
}

.service-cta__button:active {
    background-color: #051b2c;
    transform: translateY(0);
}

.service-cta__button-text {
    display: inline-block;
    white-space: nowrap;
    text-transform: uppercase;
    color: var(--color-primary-foreground, #ffffff);
}

.service-cta__button-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-primary-foreground, #ffffff);
}

.service-cta__button-icon path,
.service-cta__button-icon circle,
.service-cta__button-icon line,
.service-cta__button-icon polyline,
.service-cta__button-icon polygon {
    stroke: currentColor;
    fill: currentColor;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (max-width: 1200px) {
    .service-cta__container {
        padding-left: 200px;
        padding-right: 200px;
    }
}

@media (max-width: 1024px) {
    .service-cta__container {
        padding: 64px 120px;
        gap: 16px;
    }

    .service-cta__heading {
        font-size: 32px;
        line-height: 40px;
    }

    .service-cta__description {
        font-size: 15px;
        line-height: 23px;
    }

    .service-cta__button {
        padding: 20px 28px;
        font-size: 13px;
    }

    .service-cta__button-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 768px) {
    .service-cta__container {
        padding: 56px 32px;
        gap: 14px;
    }

    .service-cta__content {
        max-width: 100%;
    }

    .service-cta__heading {
        font-size: 28px;
        line-height: 36px;
    }

    .service-cta__description {
        font-size: 14px;
        line-height: 21px;
    }

    .service-cta__button {
        padding: 18px 24px;
        font-size: 12px;
        width: 100%;
    }

    .service-cta__button-text {
        white-space: normal;
    }

    .service-cta__button-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .service-cta__container {
        padding: 48px 20px;
        gap: 12px;
    }

    .service-cta__heading {
        font-size: 24px;
        line-height: 32px;
    }

    .service-cta__button {
        width: 100%;
        max-width: 100%;
        padding: 16px 20px;
        font-size: 12px;
    }

    .service-cta__button-text {
        white-space: normal;
        text-align: center;
    }

    .service-cta__button-icon {
        width: 14px;
        height: 14px;
    }
}

/* ============================================
   GUTENBERG EDITOR PREVIEW STYLES
   ============================================ */

.service-cta-editor {
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.service-cta-preview {
    min-height: 300px;
    padding: 40px;
    background-color: #ffffff;
}

.service-cta-preview__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 640px;
    text-align: center;
    margin: 0 auto;
    align-items: center;
}

.service-cta-preview__heading {
    font-family: var(--font-serif, 'Gambetta', serif);
    font-size: 32px;
    font-weight: 500;
    line-height: 40px;
    color: #000000;
    margin: 0;
    padding: 0;
}

.service-cta-preview__description {
    font-family: var(--font-sans, 'DM Sans', Arial, sans-serif);
    font-size: 15px;
    font-weight: 400;
    line-height: 23px;
    color: #051b2c;
    margin: 0;
    padding: 0;
}

.service-cta-preview__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 28px;
    border: 1px solid var(--color-border, #e6e6e6);
    border-radius: var(--radius-sm, 0);
    text-decoration: none;
    font-family: var(--font-sans, 'DM Sans', Arial, sans-serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 18px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
    background-color: #051b2c;
    color: var(--color-primary-foreground, #ffffff);
    margin: 0 auto;
}

.service-cta-preview__button:hover {
    background-color: #0a2535;
    border-color: var(--color-border, #d1d1d1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-cta-preview__button-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    flex-shrink: 0;
    color: var(--color-primary-foreground, #ffffff);
}

/* ============================================
   WORDPRESS EDITOR OVERRIDES
   ============================================ */

.editor-styles-wrapper .service-cta-preview__heading,
.editor-styles-wrapper .service-cta-preview__description {
    color: inherit !important;
}

.wp-block-mawconsultant-service-cta p,
.wp-block-mawconsultant-service-cta h2,
.wp-block-mawconsultant-service-cta a {
    margin: 0 !important;
}
