/* css/components/certification-card.css
   Figma "Why Shop with Us" layout replica
*/

.safety-section {
    padding: var(--section-spacing-mobile) 0;
    background: linear-gradient(135deg, #FFF3F5 0%, #F0FAF9 100%);
}

@media (min-width: 768px) { .safety-section { padding: var(--section-spacing-tablet) 0; } }
@media (min-width: 1024px) { .safety-section { padding: var(--section-spacing-desktop) 0; } }

/* Layout: Left Promo Card + Right 2x2 Grid */
.safety-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

@media (min-width: 960px) {
    .safety-layout {
        flex-direction: row;
        align-items: stretch;
        gap: 32px; /* Gap between left card and right grid */
    }
}

/* ─── Left Promo Card ─── */
.safety-promo-card {
    position: relative;
    background: var(--color-baby-pink-dark); /* Brand primary */
    border-radius: 32px;
    padding: 64px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

@media (min-width: 960px) {
    .safety-promo-card {
        flex: 0 0 400px;
    }
}
@media (min-width: 1200px) {
    .safety-promo-card {
        flex: 0 0 460px;
    }
}

/* Subtle leafy vector background */
.safety-promo-vector {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at bottom right, rgba(255,255,255,0.12) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}
.safety-promo-vector::after {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 250px; height: 250px;
    border-radius: 50%;
    border: 40px solid rgba(255,255,255,0.05);
}

.safety-promo-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.safety-promo-title {
    font-family: 'Fraunces', 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.15;
    margin: 0;
}

.safety-promo-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: rgba(255,255,255,0.95);
    line-height: 1.6;
    margin: 0;
}

.safety-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--color-baby-pink); 
    border-radius: 32px;
    color: var(--color-baby-pink-dark);
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    align-self: flex-start;
    transition: transform 0.2s ease, opacity 0.2s ease;
    margin-top: 8px;
}

.safety-explore-btn svg {
    width: 18px; height: 18px;
    stroke-width: 2.5px;
}

.safety-explore-btn:hover {
    transform: translateX(4px);
    opacity: 0.95;
}

/* ─── Right 2x2 Grid ─── */
.safety-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .safety-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─── Individual Feature Card ─── */
.safety-feature-card {
    background: #FFFFFF;
    border: 1px solid var(--color-muted);
    border-radius: 20px; /* Figma looks like 16-20px */
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.safety-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    border-color: transparent;
}

.safety-feature-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.safety-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.safety-feature-title {
    font-family: 'Fraunces', 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-charcoal);
    margin: 0;
    line-height: 1.3;
}

.safety-feature-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: var(--color-text-mid);
    line-height: 1.6;
    margin: 0;
}
