/**
 * PNK Guarantee Block Styles
 *
 * Dark-themed guarantee section with coverage cards
 *
 * @package PNK_Group
 */

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

/* Parent container - make it fill full width of outer container */
.wp-block-group:has(.pnk-guarantee-section),
.wp-block-group.is-vertical:has(.pnk-guarantee-section),
.wp-block-group.is-layout-flex:has(.pnk-guarantee-section) {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 1 1 100% !important;
}

/* Outer container with cyan-bluish-gray background - hide it completely */
.wp-block-group.has-cyan-bluish-gray-background-color:has(.pnk-guarantee-section) {
    padding: 0 !important;
    background-color: transparent !important;
}

/* Alternative: target by known WordPress class patterns */
.has-cyan-bluish-gray-background-color .wp-block-group-is-layout-flex {
    width: 100% !important;
    max-width: 100% !important;
}

.pnk-guarantee-section {
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    padding: 3rem var(--spacing-lg, 2rem);
    background-color: var(--guarantee-bg-color, #2b3e50);
    border-radius: 0;
    box-sizing: border-box;
}

/* Header Styles */
.guarantee-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.guarantee-header h4 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: var(--guarantee-header-title-color, #ffffff);
    line-height: 1.2;
}

.guarantee-header p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    color: var(--guarantee-header-desc-color, #d1d5db);
}

/* Guarantee Grid */
.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Guarantee Card Styles */
.guarantee-card {
    background-color: var(--guarantee-card-bg-color, #374151);
    padding: 2rem;
    border-radius: 0;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guarantee-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.guarantee-years {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--guarantee-years-color, #f47920);
    line-height: 1;
}

.guarantee-coverage {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--guarantee-coverage-color, #ffffff);
    line-height: 1.3;
}

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

/* Tablet - 1024px and below */
@media (max-width: 1024px) {
    .pnk-guarantee-section {
        padding: 2.5rem var(--spacing-sm);
    }

    .guarantee-header h4 {
        font-size: 1.5rem;
    }

    .guarantee-header p {
        font-size: 0.9375rem;
    }

    .guarantee-grid {
        gap: 1.5rem;
    }

    .guarantee-years {
        font-size: 2.25rem;
    }

    .guarantee-coverage {
        font-size: 1rem;
    }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
    .pnk-guarantee-section {
        margin: 1.5rem auto !important;
        padding: 1.25rem var(--spacing-sm) !important;
    }

    .guarantee-header {
        margin-bottom: 1rem !important;
    }

    .guarantee-header h4 {
        font-size: 1.125rem !important;
    }

    .guarantee-header p {
        font-size: 0.8125rem !important;
        line-height: 1.4 !important;
    }

    .guarantee-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .guarantee-card {
        padding: 1rem !important;
    }

    .guarantee-years {
        font-size: 1.5rem !important;
        margin-bottom: 0.25rem !important;
    }

    .guarantee-coverage {
        font-size: 0.8125rem !important;
    }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
    .pnk-guarantee-section {
        padding: 1rem var(--spacing-sm) !important;
    }

    .guarantee-header h4 {
        font-size: 1rem !important;
    }

    .guarantee-header p {
        font-size: 0.75rem !important;
    }

    .guarantee-card {
        padding: 0.875rem !important;
    }

    .guarantee-years {
        font-size: 1.375rem !important;
        margin-bottom: 0.25rem !important;
    }

    .guarantee-coverage {
        font-size: 0.75rem !important;
    }
}
