/* Product Page Base Styles */
/* #wrapper { background-color: #005491; } - Removed empty rule */

/* Product Header Section */
.product-header-section {
    position: relative;
    min-height: 650px;
    padding-bottom: 180px;
    /* Extra space for two-column-table overlap */
}

.product-header-section .content-container {
    padding: 0;
}

.product-header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #006997;
}

.product-header-content-wrapper {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px 40px 40px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* Product Header Heading */
.product-header-heading {
    font-family: var(--font-family-base);
    font-size: var(--font-h1-size);
    font-weight: 700;
    line-height: var(--font-h1-height);
    color: #FFFFFF;
    margin: 0 0 40px 0;
    max-width: 100%;
}

/* Product Header Body */
.product-header-body {
    max-width: 635px;
    margin-bottom: 40px;
}

.product-header-body p {
    font-family: var(--font-family-base);
    font-size: var(--font-body-size);
    font-weight: 400;
    line-height: 24px;
    color: #FFFFFF;
    margin: 0 0 20px 0;
}

.product-header-body p:last-child {
    margin-bottom: 0;
}

/* Product Header CTA Button - matches standard cta-button */
.product-header-cta {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 24px;
    gap: 10px;
    background: linear-gradient(0deg, #A1431A 0%, #E65A1D 64.42%);
    border: 1px solid #E65A1D;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    font-family: var(--font-family-base);
    font-size: var(--font-ui-size);
    font-weight: 700;
    line-height: 24px;
    color: #FFFFFF;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.35);
}

/* Legacy h4 for feature tiles */
h4 {
    font-size: var(--font-ui-size);
    font-weight: 600;
    line-height: 21px;
    margin: 0;
}

#productTileGlow {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 300px;
    width: 480px;
    /*    background: radial-gradient(circle at 50% 50%, rgba(0, 166, 221, 0.3) 0%, rgba(0, 166, 221, 0.5) 0%, rgba(238, 130, 238, 0) 65%);*/
    z-index: -1;
}

#bottom-tile-text {
    --bottom-tile-padding: 15px 22px;
}

.product-header-content-wrapper .header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    align-items: center;
}

.product-header-content-wrapper.max-width {
    max-width: 1440px;
    /* Standardize with homepage */
    margin: 0 auto;
}

.product-header-content-wrapper .header-image {
    flex: 0 0 600px;
    width: 600px;
    max-width: 600px;
    position: relative;
    height: 500px;
}

.vertical-line {
    pointer-events: none;
    position: absolute;
    height: 90%;
    width: 1px;
    background-color: rgba(0, 192, 255, 0.3);
    top: 0;
}

#line1 {
    top: 10%;
    left: 19.5%;
}

#line2 {
    top: 10%;
    right: 21.5%;
}

#line3 {
    top: 0;
    right: 50%;
}


.product-header-content-wrapper .header-text {
    flex: 1 1 auto;
    max-width: 700px;
}

.header-text .header-logo img {
    max-height: 50px;
    width: auto;
}

.feature-tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 150px;
}

.feature-tile-header-link {
    text-decoration: none;
    color: inherit;
    display: block;
    text-transform: none;
}

.feature-tiles:not(.four-tiles)>.feature-tile {
    flex: 0 0 250px;
    max-width: 250px;
}

.feature-tiles.four-tiles {
    padding: 0 200px;
}

.feature-tiles.four-tiles>.feature-tile {
    flex: 0 0 calc(50% - 50px);
    max-width: 250px;
}

.feature-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 250px;
    width: 100%;
    padding-bottom: 60px;
    box-sizing: border-box;
    text-align: left;
    height: 100%;
    color: #fff;
}

.feature-tile-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.feature-tile-header img {
    max-height: min(47px, 3em);
    width: auto;
}

.feature-tile-link {
    margin-top: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
}

.feature-tile-link p {
    color: #fff;
    font-size: var(--font-caption-size);
    font-weight: 700;
    margin: 0;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.feature-tile-link h4 {
    color: #fff;
}

.feature-tile-header-link:visited h4 {
    color: #fff;

}

.feature-tile-link img {
    margin-left: 10px;
    height: 1em;
    vertical-align: bottom;
}

.card,
.shadow {
    --width: 250px;
    --height: 250px;
    animation: none;
}

.card {
    left: 200px;
    right: 0;
    ;
}

.small-card,
.small-shadow {
    --small-card-width: 120px;
    --small-card-height: 120px;
}

.card-details {
    --logo-bottom: -75%;
    --left: none;
    --right: none;
    padding: 0 30px;
}

.small-card-details {
    --logo-bottom: -10%;
    --left: none;
    --right: none;
}

.small-card-details p {
    color: #FFFFFF;
}

.tile-wrapper {
    --left: none;
    --right: 105%;
    --top: 51%;
}

.small-tile-wrapper {
    --left: none;
    position: absolute;
}

/* Dynamic positioning using data attributes for reliability */
.small-tile-wrapper[data-tile-index="0"] {
    --top: 43%;
    --right: 59.5%;
}

.small-tile-wrapper[data-tile-index="1"] {
    --top: 47%;
    --right: 98%;
}

.small-tile-wrapper[data-tile-index="2"] {
    --top: 32%;
    --right: 79%;
}

.small-tile-wrapper[data-tile-index="3"] {
    --top: 18%;
    --right: 59.5%;
}

.small-tile-wrapper[data-tile-index="4"] {
    --top: 30%;
    --right: 42%;
}

.small-tile-wrapper[data-tile-index="5"] {
    --top: 42%;
    --right: 22%;
}

/* Tile 6 (Testing 1): Under Project Management (59.5%), Next to Safety */
.small-tile-wrapper[data-tile-index="6"] {
    --top: 60%;
    --right: 78%;
}

/* Tile 7 (Test 2): Where Testing 1 was (Center) */
.small-tile-wrapper[data-tile-index="7"] {
    --top: 55%;
    --right: 42%;
}

/* Tile 8 (Talent 2): Where Test 2 was (Left Bottom) */
.small-tile-wrapper[data-tile-index="8"] {
    --top: 67%;
    --right: 59.5%;
}

.form-container {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}




/* Product Header Responsive - Start scaling at 1440px */
@media (max-width: 1440px) {

    /* Reduce gap between text and tiles */
    .product-header-content-wrapper .header-text {
        padding-right: 20px;
    }

    .product-header-heading {
        font-size: var(--font-h1-size);
        line-height: var(--font-h1-height);
    }

    .product-header-body p {
        font-size: var(--font-body-size);
        line-height: 24px;
    }
}

/* Product Header Responsive - 1300px */
@media (max-width: 1300px) {
    .product-header-section {
        min-height: 700px;
    }

    .product-header-content-wrapper {
        padding: 60px 40px 50px;
    }

    .product-header-content-wrapper .header-text {
        padding-right: 10px;
    }

    .product-header-heading {
        font-size: var(--font-h1-size);
        line-height: var(--font-h1-height);
        max-width: 650px;
        margin-bottom: 25px;
    }

    .product-header-body {
        max-width: 600px;
        margin-bottom: 25px;
    }

    .product-header-body p {
        font-size: var(--font-body-size);
        line-height: 24px;
    }
}

/* Product Header Responsive - 1150px */
@media (max-width: 1150px) {
    .product-header-content-wrapper {
        padding: 50px 40px 40px;
    }

    .product-header-content-wrapper .header-text {
        padding-right: 5px;
    }

    .product-header-heading {
        font-size: var(--font-h2-size);
        line-height: 42px;
        max-width: 550px;
    }

    .product-header-body {
        max-width: 520px;
    }

    .product-header-body p {
        font-size: var(--font-body-size);
        line-height: 24px;
    }
}

@media (max-width: 1400px) {
    .hbspt-form .hs-form fieldset {
        width: 100%;
        max-width: none;
    }

    .hbspt-form .hs-form fieldset.form-columns-2 .hs-form-field:last-of-type {
        padding-left: 0;
    }

    .hbspt-form .hs-form fieldset.form-columns-2 .hs-form-field,
    .hbspt-form .hs-form fieldset.form-columns-1 .hs-form-field,
    .hbspt-form .hs-form fieldset.form-columns-0 .hs-form-field {
        width: 100%;
    }

    .hs-form-d68a086f-0f5d-4358-ba61-2867c1b310fc_97bfb170-de8e-4edbaa1f-8c6eab4fbb0e fieldset {
        max-width: none;
    }
}

@media (max-width: 1024px) {
    .product-header-content-wrapper .header-container {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .product-header-content-wrapper .header-text {
        flex: none;
        width: 100%;
        max-width: 100%;
        padding-right: 0;
    }

    .product-header-content-wrapper .header-text .header-logo img {
        width: 100%;
        max-width: 388px;
    }

    /* Full width header content */
    .product-header-heading {
        max-width: 100%;
        font-size: var(--font-h1-size);
        line-height: 48px;
    }

    .product-header-body {
        max-width: 100%;
    }

    .product-header-body p {
        font-size: var(--font-h4-size);
        line-height: 28px;
    }

    /* CTA uses base styles to match homepage */

    /* Tiles section - keep at 600px, center it underneath */
    .product-header-content-wrapper .header-image {
        flex: 0 0 600px;
        width: 600px;
        height: 500px;
        margin: 40px auto 0;
    }

    .form-container {
        width: 100%;
    }
}


@media (max-width: 768px) {
    .product-header-section {
        min-height: auto;
    }

    .product-header-content-wrapper {
        padding: 0 20px 40px;
    }

    .product-header-content-wrapper .header-container {
        flex-direction: column;
    }

    .product-header-content-wrapper .header-text {
        text-align: center;
        padding-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 40px;
        /* Add breathing room below fixed header */
    }

    .product-header-heading {
        font-size: var(--font-h2-size);
        line-height: 42px;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .product-header-body {
        max-width: 100%;
        margin-bottom: 25px;
    }

    .product-header-body p {
        font-size: var(--font-lead-size);
        line-height: 26px;
    }

    /* CTA uses base styles to match homepage */

    /* Ensure logo is centered and visible at TOP */
    .header-text .header-logo {
        margin-bottom: 20px;
        display: block;
        order: -1;
        /* Force to top */
    }

    .header-text .header-logo img {
        height: 60px;
        /* Scale down slightly for mobile */
        width: auto;
        max-width: 100%;
    }

    /* Hide tiles completely on mobile */
    .header-image {
        display: none;
    }
}

/* =============================================================================
   Desktop Overrides (Consolidated from desktop-tightening.css)
   ============================================================================= */
@media (min-width: 1025px) {

    /* Product Header - uses Figma base (38px/54px) */
    .product-header-heading {
        font-size: var(--font-h1-size) !important;
        line-height: var(--font-h1-height) !important;
        margin-bottom: 10px !important;
    }

    .product-header-body {
        margin-bottom: 15px !important;
    }

    .product-header-body p {
        font-size: var(--font-body-size) !important;
        line-height: 24px !important;
        margin-bottom: 10px !important;
    }

    /* Product Page Desktop Height Compression (Fit header + 2-col in 750px) */
    .product-header-section {
        min-height: auto !important;
        padding-bottom: 20px !important; 
    }
    
    .product-header-content-wrapper {
        padding-top: 20px !important; 
    }

    /* Proportional scale (slightly larger) with upward shift */
    .product-header-content-wrapper .header-image {
        transform: scale(0.85) translateY(-40px);
        transform-origin: center right;
        margin-top: -35px;
        margin-bottom: -75px;
    }

    /* Two Column Table Overrides */
    .page-type-product-page .two-column-table-section {
        margin-top: -40px !important; 
    }
    
    .page-type-product-page .two-column-table-content-wrapper {
        padding-bottom: 20px !important; 
    }
    
    .page-type-product-page .two-column-table-left,
    .page-type-product-page .two-column-table-right {
        padding: 20px 30px !important; 
    }

    /* Product Header CTA - uses base styles (13px, 10px 24px) to match homepage */
}

@media (max-width: 670px) {
    .feature-tile {
        width: 100%;
        max-width: none;
        padding-bottom: 20px;
    }
}