/* ==========================================================================
   Statement Reveal Component
   ========================================================================== */

.statement-reveal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: var(--surface-bg);
    color: var(--surface-text);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    /* Click anywhere to close */
}

.statement-reveal.is-active {
    opacity: 1;
    visibility: visible;
}

.statement-reveal__inner {
    max-width: 1200px;
    /* Slightly wider for bilingual rows */
    margin: 0 auto;
    padding: var(--space-xl) var(--edge-margin);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.statement-reveal__header {
    margin-bottom: var(--space-md);
}

.statement-reveal__header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.statement-reveal__lang-switcher {
    display: none;
    /* Hidden by default on desktop if you prefer, or subtle */
    font-family: var(--font-body);
    font-size: var(--text-small);
    letter-spacing: 0.1em;
}

@media (max-width: 800px) {
    .statement-reveal__lang-switcher {
        display: flex;
        align-items: center;
        gap: 8px;
    }
}

.statement-reveal__lang-btn {
    color: var(--surface-text);
    text-decoration: none;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.statement-reveal__lang-btn.is-active {
    opacity: 1;
    font-weight: 600;
}

.statement-reveal__lang-divider {
    opacity: 0.2;
}

.statement-reveal__title {
    margin: 0;
    display: flex;
    align-items: center;
}

.statement-reveal__logo {
    height: 35px;
    /* Scaled for header prominence */
    width: auto;
    display: block;
}

.statement-reveal__subtitle {
    font-size: var(--text-small);
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.statement-reveal__content {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    cursor: default;
}

.statement-reveal__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-sm);
}

@media (max-width: 800px) {
    .statement-reveal__row {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        margin-bottom: var(--space-lg);
    }

    /* Show only current language in mobile */
    .statement-reveal--es .statement-reveal__col--en {
        display: none;
    }

    .statement-reveal--en .statement-reveal__col--es {
        display: none;
    }

    .statement-reveal__col--en {
        opacity: 1;
        /* Reset opacity on mobile */
    }
}

.statement-reveal__col--en {
    opacity: 0.6;
    /* English slightly less prominent? Or swap? User said "English on the left" */
}

.statement-reveal__content p {
    margin-bottom: 0;
    max-width: 60ch;
}

.statement-reveal__content strong {
    font-weight: 700;
    color: #fff;
}

.statement-reveal__close {
    position: absolute;
    top: var(--edge-margin);
    right: var(--edge-margin);
    background: none;
    border: none;
    color: var(--surface-text);
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.statement-reveal__close:hover {
    opacity: 1;
}

.statement-reveal__close svg {
    width: 24px;
    height: 24px;
}

.statement-reveal__footer {
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid color-mix(in srgb, var(--surface-text) 10%, transparent);
}

.statement-reveal__signature {
    display: flex;
    flex-direction: column;
    gap: 2px;
    /* On desktop, align with the start of the first column */
    max-width: 50%;
}

.statement-reveal__name {
    font-family: var(--font-display-current);
    font-size: var(--text-h3);
    color: var(--surface-text);
    font-weight: 400;
}

.statement-reveal__brand {
    font-family: var(--font-ui);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.4;
    color: var(--surface-text);
}

@media (max-width: 800px) {
    .statement-reveal__footer {
        text-align: center;
        border-top: none;
        /* Cleaner look on mobile */
    }

    .statement-reveal__signature {
        align-items: center;
        max-width: 100%;
    }
}