/* ==========================================================================
   COMPLIANCE PAGE HERO SECTION (Desktop 1440px x 924px Canvas, #FDFFF6)
   ========================================================================== */

   /* ==========================================================================
   COMPLIANCE PAGE MASTER WRAPPER
   ========================================================================== */

.compliance-page-master {
    width: 100%;
    max-width: 100%;;
    margin: 0 auto;
    background-color: #FDFFF6; /* Ivory background matching the hero section */
    box-sizing: border-box;
    overflow: hidden; /* Prevents horizontal scroll from child elements */
}

.ow-comp-hero-section {
    position: relative;
    width: 100%;
    max-width: 100%;;
    min-height: 804px; /* 924px page height minus global header offset */
    background-color: #FDFFF6; /* Ivory background matching reference */
    padding: 64px 48px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

.ow-comp-hero-container {
    width: 1344px;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    box-sizing: border-box;
}

/* ==========================================================================
   Left Content Column 
   ========================================================================== */

.ow-comp-hero-left {
    flex: 1;
    max-width: 564px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 48px; /* Space between text block and CTA */
    box-sizing: border-box;
    z-index: 2;
}

.ow-comp-hero-text-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

/* Headline: Aspekta 400, 56px, line-height 110%, tracking -1.12px, #111111 */
.ow-comp-hero-title {
    font-family: 'Aspekta', sans-serif;
    font-weight: 400;
    font-size: 56px;
    line-height: 110%; /* 61.6px */
    letter-spacing: -1.12px;
    color: #111111;
    margin: 0;
    text-align: left;
}

/* Description: Inter 400, 16px/24px, #111111 at 75% opacity */
.ow-comp-hero-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%; /* 24px */
    letter-spacing: 0;
    color: rgba(17, 17, 17, 0.75);
    margin: 0;
    text-align: left;
    max-width: 524px; /* Matches prompt's constraint for optimal reading width */
}

/* Dual-Segment CTA Button Group */
.ow-comp-hero-cta-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    height: 48px;
    box-sizing: border-box;
}

/* Text Pill */
.ow-comp-cta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 16px;
    background-color: #F3F3F3;
    border-radius: 4px;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.ow-comp-cta-pill span {
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    font-size: 14px;
    line-height: 120%; /* 16.8px */
    letter-spacing: 0;
    text-transform: uppercase;
    color: #2A2A2A;
    white-space: nowrap;
}

.ow-comp-cta-pill:hover {
    background-color: #E6E6E6;
}

/* Arrow Circle: #CAED57 (Lime) */
.ow-comp-cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    background-color: #CAED57;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.ow-comp-cta-arrow:hover {
    background-color: #bce042;
    transform: translateX(2px);
}

/* ==========================================================================
   Right Artwork Column
   ========================================================================== */

.ow-comp-hero-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}

.ow-comp-shield-wrap {
    width: 610px; /* Sized precisely based on provided .group dimensions */
    height: 610px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    
}

.ow-comp-shield-graphic {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    
    /* 1. Invert the video: Black background becomes white, light shield becomes dark */
    filter: invert(1); 
    /* 2. Multiply blend: Drops out the new white background, letting the ivory page show through */
    mix-blend-mode: multiply; /* Drops out white backgrounds perfectly into the ivory canvas */
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1200px) {
    .ow-comp-hero-section {
        min-height: auto;
        padding: 48px 24px;
    }

    .ow-comp-hero-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 64px;
    }

    .ow-comp-hero-left,
    .ow-comp-hero-right {
        width: 100%;
        max-width: 100%;
    }

    .ow-comp-shield-wrap {
        width: 100%;
        max-width: 500px;
        height: auto;
        aspect-ratio: 1;
    }
}

@media (max-width: 640px) {
    .ow-comp-hero-section {
        padding: 32px 16px 64px 16px;
    }

    .ow-comp-hero-title {
        font-size: 42px;
        line-height: 46px;
    }

    .ow-comp-hero-title br {
        display: none; /* Allows natural wrapping on smaller screens */
    }

    .ow-comp-hero-text-stack {
        gap: 16px;
    }
}

/* ==========================================================================
   COMPLIANCE - STANDARDS GRID SECTION (1440px Baseline, #FDFFF6)
   ========================================================================== */

.ow-comp-std-section {
    position: relative;
    width: 100%;
    max-width: 100%;;
    background-color: #FDFFF6;
    margin: 0 auto;
    padding: 96px 48px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.ow-comp-std-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* ==========================================================================
   3x2 Grid
   ========================================================================== */

.ow-comp-std-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    box-sizing: border-box;
}

/* Individual Card (464px fixed height from CSS specs) */
.ow-comp-std-card {
    position: relative;
    width: 100%;
    height: 464px;
    background-color: #111111; /* Solid dark background */
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes icon to top, text to bottom */
    align-items: flex-start;
    overflow: hidden;
    box-sizing: border-box;
}

/* Very faint square grid background detail over the dark cards */
.ow-comp-std-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 1;
}

/* Icon (Top-Left) */
.ow-comp-std-icon {
    position: relative;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 2;
}

.ow-comp-std-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Text Stack (Bottom-Left) */
.ow-comp-std-text-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 2;
}

/* Card Title: Aspekta 400, 24px, #FDFFF6 */
.ow-comp-std-card-title {
    font-family: 'Aspekta', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 110%; /* 26.4px */
    letter-spacing: -0.48px;
    color: #FDFFF6;
    margin: 0;
}

/* Card Description: Inter 400, 16px, #FFFFFF at 75% opacity */
.ow-comp-std-card-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%; /* 24px */
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1024px) {
    .ow-comp-std-section {
        padding: 72px 32px;
    }

    .ow-comp-std-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ow-comp-std-section {
        padding: 56px 20px;
    }

    .ow-comp-std-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    
    .ow-comp-std-card {
        height: auto;
        min-height: 400px;
        padding: 24px;
    }
}
/* Standards: carousel on tablet and mobile */
.ow-comp-std-nav {
    display: none;
}

@media (max-width: 1023px) {
    .ow-comp-std-section {
        padding: 36px;
    }

    .ow-comp-std-container {
        gap: 36px;
    }

    .ow-comp-std-grid {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 24px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .ow-comp-std-grid::-webkit-scrollbar {
        display: none;
    }

    .ow-comp-std-card {
        flex: 0 0 calc((100% - 24px) / 2);
        width: auto;
        height: 464px;
        min-height: 0;
        padding: 32px;
        scroll-snap-align: start;
    }

    .ow-comp-std-nav {
        display: flex;
        justify-content: flex-end;
        gap: 4px;
        width: 100%;
    }

    .ow-comp-std-nav-btn {
        width: 48px;
        height: 48px;
        border-radius: 9999px;
        background-color: #111111;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        transition: background-color 0.2s ease;
    }

    .ow-comp-std-nav-btn:hover {
        background-color: #2a2a2a;
    }

    .ow-comp-std-nav-icon {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .ow-comp-std-section {
        padding: 24px 16px;
    }

    .ow-comp-std-container {
        gap: 24px;
    }

    .ow-comp-std-card {
        flex-basis: 100%;
    }
}
