/* Purpose Page Styles */

/* 
 * SWEET SPOT CONFIGURATION 
 * Tune these variables to find the perfect font sizes.
 */
:root {
    --purpose-title-size: clamp(26px, 3.5vw, 42px);
    --purpose-statement-size: 36px;
    --vision-brand-size: 56px;
    --vision-divider-size: 36px;
    --vision-subtitle-size: 36px;
    --vision-text-size: 21px;
    --purpose-block-gap: 60px;
    --purpose-content-width: 1000px;
    --mvv-width: 900px;
    --mvv-card-border-width: 2px;
    --mvv-card-pt: 50px;
    --mvv-card-pb: 30px;
    --mvv-card-px: 40px;
    --mvv-watermark-top: 20px;
    --mvv-watermark-size: 60px;
    --mvv-card-title-size: 28px;
    --mvv-card-text-size: 20px;
    --mvv-value-dt-size: 20px;
    --mvv-value-dd-size: 18px;
    
    /* Mobile (SP) Sweet Spot */
    --sp-purpose-title-size: 26px;
    --sp-purpose-statement-size: 22px;
    --sp-vision-brand-size: 42px;
    --sp-vision-divider-size: 24px;
    --sp-vision-subtitle-size: 22px;
    --sp-vision-text-size: 14px;
    --sp-purpose-block-gap: 80px;
    --sp-mvv-watermark-top: 25px;
    --sp-mvv-watermark-size: 50px;
    --sp-mvv-card-title-size: 24px;
    --sp-mvv-card-text-size: 15px;
    --sp-mvv-value-dt-size: 18px;
    --sp-mvv-value-dd-size: 14px;

    /* Effects Sweet Spot */
    --vision-text-shadow: 0 11.47px 13.77px rgba(0, 0, 0, 0.25);
    --vision-body-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    --vision-text-color: #2D3A3A;
    --mvv-card-shadow: 10px 10px 10px 0 rgba(0, 53, 143, 0.5);
    --mvv-watermark-color: rgba(0, 53, 143, 0.15);
    
    /* ========== MVV BACKGROUND MASK CONFIGURATION (Desktop) ========== */
    --mvv-mask-width: 89vw;           /* Width of the mask image from screenshot */
    --mvv-mask-height: 49vw;          /* Height of the mask image from screenshot */
    --mvv-mask-top: -10vw;            /* Y-position from screenshot */
    --mvv-mask-left: 55vw;            /* X-position from screenshot */
    --mvv-mask-rotate: 54deg;         /* Rotation angle from screenshot */
    --mvv-mask-opacity: 0.7;          /* Transparency from screenshot */
    --mvv-mask-container-height: 100%; /* How tall the cropping container is - set to 100% to match section height */

    /* ========== MVV BACKGROUND MASK CONFIGURATION (Mobile SP) ========== */
    --sp-mvv-mask-width: 150vw;
    --sp-mvv-mask-height: 137vw;
    --sp-mvv-mask-top: -58vw;
    --sp-mvv-mask-left: 60vw;
    --sp-mvv-mask-rotate: 50deg;
}

.purpose-page {
    position: relative;
    background-color: #F8FAFC;
    overflow: hidden;
}

/* Old CSS bg-lines removed — now using global bpo-mask-bg.png */

.purpose-content-inner {
    width: var(--container-w);
    margin: 0 auto;
    padding: 80px 0 100px;
    position: relative;
    z-index: 1;
    text-align: left;
}

.purpose-block {
    margin-bottom: var(--purpose-block-gap);
}

.purpose-title {
    font-size: var(--purpose-title-size);
    font-weight: 800;
    color: #1a233a;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
}

.purpose-statement {
    font-size: clamp(18px, 3.5vw, 36px);
    font-weight: 700;
    color: #333;
    line-height: 1.6;
    letter-spacing: 0.02em;
    text-align: center;
    margin: 48px 0;
    padding: 32px 0;
    word-break: keep-all;
    line-break: strict;
    overflow-wrap: break-word;
}

.vision-block {
    margin-bottom: 60px;
}

.vision-brand {
    font-size: var(--vision-brand-size);
    font-weight: 800;
    font-family: 'Cormorant Garamond', serif;
    color: var(--vision-text-color);
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    text-shadow: var(--vision-text-shadow);
    text-align: center;
}

.vision-divider {
    font-size: var(--vision-divider-size);
    font-weight: 300;
    color: var(--vision-text-color);
    margin-bottom: 10px;
    letter-spacing: 4px;
    text-shadow: var(--vision-text-shadow);
    text-align: center;
}

.vision-subtitle {
    font-size: var(--vision-subtitle-size);
    font-weight: 800;
    color: var(--vision-text-color);
    margin-bottom: 40px;
    letter-spacing: 0.05em;
    text-shadow: var(--vision-text-shadow);
    text-align: center;
}

.vision-text p {
    font-size: var(--vision-text-size);
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 24px;
    text-shadow: var(--vision-body-shadow);
}

.vision-text p:last-child {
    margin-bottom: 0;
}

.purpose-image-block {
    width: 100%;
    height: 450px;
    background: 
        linear-gradient(rgba(246, 249, 252, 0.5), rgba(246, 249, 252, 0.5)), 
        url('../images/purpose-ewaste.jpg') center center / cover no-repeat;
    background-color: #a0aec0; /* fallback grey */
    position: relative;
}

/* MVV Section */
.mvv-section {
    position: relative;
    padding: 80px 20px 120px;
    background-color: transparent;
    text-align: left;
}

.mvv-main-title {
    position: relative;
    z-index: 2;
    font-size: 36px;
    font-weight: 800;
    color: #1a233a;
    margin-bottom: 60px;
    letter-spacing: 0.05em;
    text-align: center;
}

.mvv-container {
    max-width: var(--mvv-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.mvv-card {
    background: #fff;
    border: var(--mvv-card-border-width) solid #d3e1ef;
    border-radius: 4px;
    box-shadow: var(--mvv-card-shadow);
    padding: var(--mvv-card-pt) var(--mvv-card-px) var(--mvv-card-pb);
    position: relative;
    overflow: hidden;
}

.mvv-card.value-card {
    padding-bottom: 80px;
}

.mvv-watermark {
    position: absolute;
    top: var(--mvv-watermark-top);
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--mvv-watermark-size);
    font-weight: 800;
    color: var(--mvv-watermark-color);
    z-index: 0;
    letter-spacing: -0.02em;
    pointer-events: none;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.mvv-title {
    position: relative;
    z-index: 1;
    font-size: var(--mvv-card-title-size);
    font-weight: 800;
    color: #1a233a;
    margin-bottom: 40px;
    letter-spacing: 0.1em;
    text-align: center;
}

.mvv-text {
    position: relative;
    z-index: 1;
    font-size: var(--mvv-card-text-size);
    color: #333;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.value-list {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 700px;
    margin: 0;
    padding: 0;
}

.value-item {
    margin-bottom: 40px;
}

.value-item:last-child {
    margin-bottom: 0;
}

.value-item dt {
    font-size: var(--mvv-value-dt-size);
    font-weight: 700;
    color: #1a233a;
    margin-bottom: 12px;
}

.value-item dd {
    font-size: var(--mvv-value-dd-size);
    color: #4a5568;
    line-height: 1.6;
}

/* Responsiveness */
@media (max-width: 768px) {
    .purpose-content-inner {
        padding: 60px 0 70px;
    }

    .purpose-title {
        font-size: var(--sp-purpose-title-size);
        margin-bottom: 30px;
    }

    .purpose-statement {
        font-size: var(--sp-purpose-statement-size);
        line-height: 1.5;
    }

    .purpose-block {
        margin-bottom: var(--sp-purpose-block-gap);
    }

    .vision-brand {
        font-size: var(--sp-vision-brand-size);
    }

    .vision-divider {
        font-size: var(--sp-vision-divider-size);
    }

    .vision-subtitle {
        font-size: var(--sp-vision-subtitle-size);
        margin-bottom: 30px;
    }

    .vision-text p {
        font-size: var(--sp-vision-text-size);
        margin-bottom: 20px;
    }

    .purpose-image-block {
        height: 250px;
    }

    .mvv-section {
        padding: 60px 15px 80px;
    }

    .mvv-main-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .mvv-card {
        padding: 40px 20px;
        box-shadow: 8px 8px 20px rgba(121, 155, 196, 0.25);
    }

    .mvv-watermark {
        font-size: var(--sp-mvv-watermark-size);
        top: var(--sp-mvv-watermark-top);
    }

    .mvv-title {
        font-size: var(--sp-mvv-card-title-size);
        margin-bottom: 30px;
    }

    .mvv-text {
        font-size: var(--sp-mvv-card-text-size);
    }

    .value-list {
        padding: 0;
    }

    .value-item dt {
        font-size: var(--sp-mvv-value-dt-size);
    }

    .value-item dd {
        font-size: var(--sp-mvv-value-dd-size);
    }
}
/* ========== MVV BACKGROUND MASK ========== */
.purpose-mvv-mask {
    position: absolute;
    width: 100%;
    height: 100%; /* Uses the full height of the parent section */
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden; /* Crucial: crops the rotated image */
}

.purpose-mvv-mask::before {
    content: "";
    position: absolute;
    width: var(--mvv-mask-width);
    height: var(--mvv-mask-height);
    top: var(--mvv-mask-top);
    left: var(--mvv-mask-left);
    transform-origin: center center;
    transform: rotate(var(--mvv-mask-rotate));
    background: url('../images/bpo-mask-bg.png') no-repeat center/cover;
    opacity: var(--mvv-mask-opacity);
}

/* Mobile overrides for the mask */
@media (max-width: 768px) {
    .purpose-mvv-mask::before {
        width: var(--sp-mvv-mask-width);
        height: var(--sp-mvv-mask-height);
        top: var(--sp-mvv-mask-top);
        left: var(--sp-mvv-mask-left);
        transform: rotate(var(--sp-mvv-mask-rotate));
    }
}
