/* ================================================================
   ABOUT US - SECTION 5: TECHNICAL ASSESSMENT & MATERIAL RISKS
   Pixel-Perfect Figma Implementation
   Target: 85%+ Figma Compliance
   Created: 2025-10-31
   ================================================================ */

:root {
    --torg-orange: rgb(228, 169, 96);
    --text-primary: #FFFFFF;
    --bg-primary: #1a1a1a;
}

/* ================================================================
   SECTION 5: MAIN CONTAINER
   ================================================================ */

.about-section-5 {
    position: relative;
    min-height: 900px; /* USER FIX: Increased from 800px so button fits! */
    height: 900px; /* USER FIX: Increased from 800px so button doesn't get cut off */
    padding: 60px 0 80px 0; /* FIX: VQA says content shifted down 30-40px - reduced from 100px */
    background: radial-gradient(
        ellipse at top left,
        rgba(228, 169, 96, 0.03) 0%,
        transparent 50%
    ), var(--bg-primary);
    overflow: hidden;
    opacity: 1 !important; /* Override JavaScript inline styles */
}

.about-section-5 .container {
    max-width: 1300px; /* Optimized for better spacing */
    margin: 0 auto;
    padding: 0 20px; /* FIX: VQA says section padding 150px too large - reduced from 40px */
}

/* ================================================================
   GRID LAYOUT - O1 & FIGMA: 50:50 ratio (608px:596px ≈ 50:50)
   ================================================================ */

.about-section-5 .section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* O1 + FIGMA: 50:50 ratio for symmetry and readability */
    gap: 56px; /* FIGMA EXACT: Gap between 608px and 596px columns in 1400px container */
    align-items: flex-start;
}

/* ================================================================
   VISUAL COLUMN (LEFT - 40%) - TECHNICAL ASSESSMENT LIST
   ================================================================ */

.about-section-5 .visual-column {
    display: flex;
    flex-direction: column;
}

.about-section-5 .assessment-list {
    display: flex;
    flex-direction: column;
    gap: 16px; /* Consistent gap between pills */
    align-items: stretch;
    justify-content: flex-start; /* FIGMA: Pills start from top, not space-evenly */
    width: 100%; /* Full width of column */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    /* FIGMA EXACT PADDING from Container analysis:
       Outer (8:826): 608x677px at x:1301, y:4048
       Inner (8:866): 522x570px at x:1344, y:4102
       Padding: 54px top, 43px left/right */
    padding: 54px 43px; /* FIGMA EXACT: Match container structure */
}

/* CSS Background Wrapper - Figma API Export Limitation Workaround */
.about-section-5 .pill-wrapper {
    width: 100%;
    background: #e8af69; /* Exact color from Figma pill1 */
    border-radius: 40px; /* Match Figma pill roundness */
    overflow: hidden;
    transition: all 0.3s ease;
}

.about-section-5 .pill-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(228, 169, 96, 0.3);
}

/* REAL Figma PNG Pills - Native Figma Dimensions */
.about-section-5 .pill-img {
    width: 100%; /* USER UPDATE: Full width for even distribution */
    height: auto; /* Maintain aspect ratio */
    max-width: none; /* USER UPDATE: Remove max-width constraint to allow full width */
    display: block;
    transition: all 0.3s ease;
    image-rendering: -webkit-optimize-contrast; /* Better quality */
    image-rendering: crisp-edges;
    border-radius: 40px; /* Match Figma pill roundness */
    border: none; /* Remove all borders per VQA requirement */
}

/* Direct pill (pill1 has background baked in) */
.about-section-5 .assessment-list > .pill-img:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 8px rgba(228, 169, 96, 0.2));
}

/* ================================================================
   CONTENT COLUMN (RIGHT - 60%)
   ================================================================ */

.about-section-5 .content-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 85px; /* FIGMA EXACT: Text container offset (y:4133 - y:4048 = 85px) */
}

/* Title with Orange Highlight - FIX: ENTIRE heading should be orange per VQA! */
.about-section-5 .section-title {
    font-size: 32px; /* FIX: VQA says 8-12px too large - reduced to minimum of expected range 32-36px */
    font-weight: 700;
    line-height: 1.25; /* FIX: VQA says expected 1.2-1.3 - middle of range */
    letter-spacing: -0.02em; /* FIX: VQA says expected -0.02em for tighter spacing */
    color: var(--text-primary);
    margin: 0 0 40px; /* FIX: VQA says expected 32-40px - increased from 20px */
    text-align: left;
    max-width: 620px; /* Constrain width */
}

/* O1 + USER: Apply cream/beige to title, orange only on partial highlight */
.about-section-5 .section-title.highlight-orange {
    color: #E8DCC8 !important; /* FIX: VQA says lighter cream/beige instead of saturated gold - changed from #D4A574 */
}

/* O1 RECOMMENDATION: Partial orange highlight on key risk words */
.about-section-5 .risk-highlight {
    color: var(--torg-orange) !important;
    font-weight: 700; /* Make highlighted text slightly bolder for emphasis */
}

/* Risks Description */
.about-section-5 .risks-description {
    display: flex;
    flex-direction: column;
    gap: 24px; /* FIX: VQA says expected 24px gap between paragraphs */
}

.about-section-5 .risks-description p {
    font-size: 18px; /* Increased from 16px */
    font-weight: 400; /* FIX: VQA says ensure weight is exactly 400 */
    line-height: 1.65; /* FIX: VQA says expected 1.6-1.7 - increased from overcorrected 1.5 */
    color: #E8DCC8; /* FIX: VQA says cream/beige matching heading tone - changed from #B8B8B8 */
    opacity: 0.9; /* FIX: VQA recommends opacity 0.9 */
    margin: 0;
    text-align: left;
}

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

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    .about-section-5 {
        padding: 60px 0;
    }

    .about-section-5 .container {
        padding: 0 24px;
    }

    .about-section-5 .section-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-section-5 .section-title {
        font-size: 40px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .about-section-5 {
        padding: 40px 0;
    }

    .about-section-5 .container {
        padding: 0 16px;
    }

    .about-section-5 .section-title {
        font-size: 32px;
    }

    .about-section-5 .risks-description p {
        font-size: 14px;
    }

    .about-section-5 .assessment-item {
        padding: 12px 16px;
    }

    .about-section-5 .item-text {
        font-size: 13px;
    }
}

/* ================================================================
   CTA BUTTON - USER UPDATE: Match nav-cta-button style exactly
   ================================================================ */

.about-section-5 .cta-button {
    position: relative;
    display: block !important; /* CRITICAL: Always visible, override any JS */
    /* FIGMA EXACT DIMENSIONS: 639x68px */
    width: 639px !important;
    max-width: calc(100vw - 40px); /* Responsive: Don't exceed viewport */
    height: 68px !important;
    margin: 60px auto 0 auto; /* FIGMA FIX: 60px top spacing, centered in main container */
    text-align: center;
    padding: 0 !important; /* Remove padding, use exact dimensions */
    opacity: 1 !important; /* CRITICAL: Always visible */
    visibility: visible !important; /* CRITICAL: Always visible */

    /* Center text vertically in 68px height */
    display: flex !important;
    align-items: center;
    justify-content: center;

    /* MATCH nav-cta-button styles */
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 22px !important;
    color: #000000 !important; /* Black text */
    background-color: #D4A574 !important; /* Golden/orange background - MATCH nav-cta-button */
    background: #D4A574 !important;
    border-radius: 12px !important;
    border: none !important;
    text-decoration: none;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.about-section-5 .cta-button:hover {
    transform: translateY(-2px);
    background-color: #E0B585 !important; /* Slightly lighter on hover */
    box-shadow: 0 8px 20px rgba(212, 165, 116, 0.3);
}

.about-section-5 .cta-button:active {
    transform: translateY(0px);
    transition-duration: 0.1s;
}

/* Focus state for accessibility */
.about-section-5 .cta-button:focus-visible {
    outline: 3px solid var(--torg-orange);
    outline-offset: 4px;
    border-radius: 12px;
}

/* Responsive CTA button */
@media (max-width: 768px) {
    .about-section-5 .cta-button {
        width: 100%;
        max-width: 100%;
    }
}
