/* ===========================
   WBE CERTIFICATION STYLES
   PARADOX INDEX — Native to existing design system
   =========================== */

/* ===========================
   TRUST BADGE (Above the fold)
   =========================== */

.wbe-trust-badge {
    background: #111111;
    border-bottom: 1px solid rgba(184, 115, 51, 0.25);
    padding: 0;
}

.wbe-badge-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.85rem 4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.wbe-badge-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(184, 115, 51, 0.04);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.wbe-badge-inner:hover::before {
    opacity: 1;
}

.wbe-badge-seal {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    filter: brightness(0.9) saturate(0.85);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.35s ease;
}

.wbe-badge-inner:hover .wbe-badge-seal {
    transform: scale(1.06);
    filter: brightness(1) saturate(1);
}

.wbe-badge-divider {
    width: 1px;
    height: 28px;
    background: rgba(184, 115, 51, 0.4);
    flex-shrink: 0;
}

.wbe-badge-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.wbe-badge-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.2;
}

.wbe-badge-sub {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.2;
}

.wbe-badge-arrow {
    margin-left: auto;
    font-size: 0.65rem;
    color: rgba(184, 115, 51, 0.7);
    letter-spacing: 0.1em;
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.wbe-badge-inner:hover .wbe-badge-arrow {
    transform: translateX(4px);
    color: #B87333;
}


/* ===========================
   CERTIFICATION SECTION
   =========================== */

.wbe-certification-section {
    background: #ffffff;
    padding: 5rem 4rem;
    border-top: 1px solid #e8e8e8;
}

.wbe-cert-container {
    max-width: 1400px;
    margin: 0 auto;
}

.wbe-cert-header {
    margin-bottom: 2.5rem;
}

.wbe-cert-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #B87333;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.wbe-cert-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #111111;
    line-height: 1.1;
    margin-bottom: 0;
    position: relative;
    display: inline-block;
}

.wbe-cert-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #B87333;
}

.wbe-cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    margin-top: 3rem;
}

/* LEFT — Certificate Image */
.wbe-cert-left {
    position: relative;
}

.wbe-cert-img-wrapper {
    position: relative;
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    aspect-ratio: 8.5 / 11;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wbe-cert-img-wrapper:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(184, 115, 51, 0.15);
    transform: translateY(-2px);
}

.wbe-cert-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

/* Placeholder when image not yet loaded */
.wbe-cert-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.wbe-cert-placeholder-seal {
    width: 64px;
    height: 64px;
    opacity: 0.4;
    filter: grayscale(1);
}

.wbe-cert-placeholder-text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #999999;
    text-transform: uppercase;
    text-align: center;
}

.wbe-cert-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(17, 17, 17, 0.7));
    padding: 1.5rem 1rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.35s ease;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wbe-cert-img-wrapper:hover .wbe-cert-img-overlay {
    opacity: 1;
}

.wbe-cert-img-overlay svg {
    flex-shrink: 0;
}

/* RIGHT — Certification Details */
.wbe-cert-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.wbe-cert-right-headline {
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #111111;
    line-height: 1.2;
}

.wbe-cert-body {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #555555;
}

.wbe-cert-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.wbe-cert-bullets li {
    font-size: 0.88rem;
    font-weight: 500;
    color: #111111;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    letter-spacing: 0.02em;
}

.wbe-cert-bullets li::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 2px;
    background: #B87333;
    flex-shrink: 0;
}

/* Metadata block */
.wbe-cert-meta {
    background: #f7f7f7;
    border-left: 3px solid #B87333;
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.wbe-cert-meta-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    font-size: 0.82rem;
    line-height: 1.4;
}

.wbe-cert-meta-label {
    font-weight: 700;
    color: #111111;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    font-size: 0.72rem;
    min-width: 130px;
    flex-shrink: 0;
}

.wbe-cert-meta-value {
    font-weight: 400;
    color: #555555;
    font-size: 0.84rem;
}

/* CTA Button — uses existing .hero-btn pattern */
.wbe-cert-cta {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: transparent;
    color: #B87333;
    border: 2px solid #B87333;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    align-self: flex-start;
}

.wbe-cert-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.wbe-cert-cta:hover {
    background: #B87333;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(184, 115, 51, 0.3);
    transform: translateY(-1px);
}

.wbe-cert-cta:hover::before {
    width: 200px;
    height: 200px;
}


/* ===========================
   LIGHTBOX / MODAL
   =========================== */

.wbe-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.wbe-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.wbe-modal-inner {
    position: relative;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.94) translateY(8px);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wbe-modal-overlay.active .wbe-modal-inner {
    transform: scale(1) translateY(0);
}

.wbe-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: rgba(17, 17, 17, 0.8);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.wbe-modal-close:hover {
    background: #111111;
}

.wbe-modal-close svg {
    color: #ffffff;
}

.wbe-modal-img-wrap {
    overflow-y: auto;
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
}

.wbe-modal-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* Placeholder inside modal */
.wbe-modal-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 4rem 2rem;
    min-height: 500px;
    width: 100%;
}

.wbe-modal-placeholder-seal {
    width: 80px;
    height: 80px;
    opacity: 0.6;
}

.wbe-modal-placeholder h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111111;
    text-align: center;
    letter-spacing: 0.03em;
}

.wbe-modal-placeholder p {
    font-size: 0.85rem;
    color: #777777;
    text-align: center;
    line-height: 1.6;
    max-width: 320px;
}

.wbe-modal-caption {
    padding: 0.75rem 1.25rem;
    background: #111111;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.wbe-modal-caption span {
    color: #B87333;
}


/* ===========================
   FOOTER TRUST LINE
   =========================== */

.wbe-footer-trust {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wbe-footer-trust::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 1px;
    background: rgba(184, 115, 51, 0.5);
    flex-shrink: 0;
}


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

@media (max-width: 1024px) {
    .wbe-cert-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .wbe-cert-img-wrapper {
        max-width: 480px;
    }
}

@media (max-width: 768px) {
    .wbe-badge-inner {
        padding: 0.75rem 1.5rem;
        gap: 0.75rem;
    }

    .wbe-badge-arrow {
        display: none;
    }

    .wbe-certification-section {
        padding: 5rem 1.5rem;
    }

    .wbe-cert-grid {
        gap: 2.5rem;
    }

    .wbe-cert-meta-label {
        min-width: 100px;
    }

    .wbe-modal-inner {
        max-width: 100%;
    }

    .wbe-cert-img-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .wbe-badge-inner {
        padding: 0.65rem 1rem;
    }

    .wbe-badge-seal {
        width: 26px;
        height: 26px;
    }

    .wbe-badge-title {
        font-size: 0.65rem;
    }

    .wbe-badge-sub {
        font-size: 0.58rem;
    }

    .wbe-cert-meta-row {
        flex-direction: column;
        gap: 0.15rem;
    }

    .wbe-cert-meta-label {
        min-width: unset;
    }
}
