/* ==========================================================
   WHY PERTECNICA
   HAMSA ENGINEERING CORPORATE DESIGN
   ----------------------------------------------------------
   Palette:
   Black / Gray / Gold / White
   Engineering Graphics / Technical Geometry
   ========================================================== */


/* ==========================================================
   SECTION
   ========================================================== */

.hcg-why-pertecnica-section {

    position: relative;

    overflow: hidden;

    padding: 78px 0 82px;

    background: #ffffff;

    color: #1a1a1a;
}


/* ==========================================================
   ENGINEERING GRID
   ========================================================== */

.hcg-why-pertecnica-section::before {

    content: '';

    position: absolute;

    inset: 0;

    pointer-events: none;

    opacity: .55;

    background-image:
        linear-gradient(
            rgba(0,0,0,.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(0,0,0,.035) 1px,
            transparent 1px
        );

    background-size:
        50px 50px;
}


/* ==========================================================
   ENGINEERING GOLD MARKER
   ========================================================== */

.hcg-why-pertecnica-section::after {

    content: '';

    position: absolute;

    top: 0;
    right: 0;

    width: 180px;
    height: 180px;

    pointer-events: none;

    opacity: .65;

    background:
        linear-gradient(
            135deg,
            transparent 49%,
            rgba(196,150,55,.45) 50%,
            transparent 51%
        );

    border-right:
        1px solid rgba(196,150,55,.35);

    border-top:
        1px solid rgba(196,150,55,.35);
}


/* ==========================================================
   CONTAINER
   ========================================================== */

.hcg-why-pertecnica-section
.hcg-container {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 1320px;

    margin: 0 auto;

    padding-left: 30px;
    padding-right: 30px;
}


/* ==========================================================
   HEADER
   ========================================================== */

.hcg-why-header {

    position: relative;

    max-width: 900px;

    margin: 0 auto 50px;

    text-align: center;
}


/* ==========================================================
   LABEL
   ========================================================== */

.hcg-why-label {

    position: relative;

    display: inline-flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 14px;

    color: #A87918;

    font-size: 15px;

    font-weight: 700;

    line-height: 1.4;

    letter-spacing: .13em;

    text-transform: uppercase;
}


/* Engineering marker */

.hcg-why-label::before {

    content: '';

    display: block;

    width: 30px;

    height: 3px;

    background: #C49637;
}


/* ==========================================================
   HEADER TITLE
   ========================================================== */

.hcg-why-header h2 {

    margin: 0 0 16px;

    color: #111111;

    font-size: 26px;

    font-weight: 700;

    line-height: 1.3;

    letter-spacing: -.01em;
}


/* ==========================================================
   HEADER DESCRIPTION
   ========================================================== */

.hcg-why-header p {

    max-width: 820px;

    margin: 0 auto;

    color: #606060;

    font-size: 17px;

    line-height: 1.7;
}


/* ==========================================================
   TECHNICAL DIVIDER
   ========================================================== */

.hcg-why-header::after {

    content: '';

    display: block;

    width: 72px;

    height: 2px;

    margin: 26px auto 0;

    background:
        linear-gradient(
            90deg,
            #C49637 0 55%,
            #222222 55% 100%
        );
}


/* ==========================================================
   CARD GRID
   ========================================================== */

.hcg-why-grid {

    position: relative;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;
}


/* ==========================================================
   CARD
   ========================================================== */

.hcg-why-card {

    position: relative;

    display: block;

    min-height: 220px;

    padding: 30px 32px;

    overflow: hidden;

    background: #ffffff;

    border:
        1px solid #D4D4D4;

    border-left:
        4px solid #222222;

    border-radius: 2px;

    text-decoration: none !important;

    box-shadow:
        0 4px 14px rgba(0,0,0,.045);

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}


/* ==========================================================
   TECHNICAL CORNER GRAPHIC
   ========================================================== */

.hcg-why-card::before {

    content: '';

    position: absolute;

    top: 0;
    right: 0;

    width: 90px;
    height: 90px;

    pointer-events: none;

    border-left:
        1px solid rgba(196,150,55,.30);

    border-bottom:
        1px solid rgba(196,150,55,.30);

    background:
        linear-gradient(
            135deg,
            transparent 48%,
            rgba(196,150,55,.12) 49%,
            transparent 51%
        );
}


/* ==========================================================
   TECHNICAL CORNER DETAIL
   ========================================================== */

.hcg-why-card::after {

    content: '';

    position: absolute;

    right: 16px;
    bottom: 16px;

    width: 34px;
    height: 34px;

    pointer-events: none;

    border-right:
        2px solid rgba(0,0,0,.12);

    border-bottom:
        2px solid rgba(196,150,55,.45);
}


/* ==========================================================
   CARD HOVER
   ========================================================== */

.hcg-why-card:hover {

    transform:
        translateY(-3px);

    border-color:
        #BEBEBE;

    border-left-color:
        #C49637;

    box-shadow:
        0 10px 26px rgba(0,0,0,.09);
}


/* ==========================================================
   CARD GOLD ACCENT
   ========================================================== */

.hcg-why-card-line {

    display: block;

    width: 42px;

    height: 3px;

    margin-bottom: 22px;

    background: #C49637;

    border-radius: 0;
}


/* ==========================================================
   CARD TITLE
   ========================================================== */

.hcg-why-card h3 {

    position: relative;

    z-index: 2;

    margin: 0 0 12px;

    color: #111111;

    font-size: 22px;

    font-weight: 700;

    line-height: 1.35;
}


/* ==========================================================
   CARD DESCRIPTION
   ========================================================== */

.hcg-why-card p {

    position: relative;

    z-index: 2;

    max-width: 620px;

    margin: 0;

    color: #5D5D5D;

    font-size: 17px;

    line-height: 1.7;
}


/* ==========================================================
   CTA
   ========================================================== */

.hcg-why-footer {

    position: relative;

    z-index: 3;

    margin-top: 48px;

    text-align: center;
}


/* ==========================================================
   CTA BUTTON
   ========================================================== */

.hcg-why-button {

    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 50px;

    padding:
        0 30px;

    background: #111111;

    border:
        1px solid #111111;

    border-radius: 2px;

    color: #ffffff !important;

    font-size: 15px;

    font-weight: 700;

    line-height: 1;

    letter-spacing: .025em;

    text-decoration: none !important;

    box-shadow:
        0 5px 16px rgba(0,0,0,.14);

    transition:
        background .22s ease,
        border-color .22s ease,
        color .22s ease,
        transform .22s ease;
}


/* Gold top detail */

.hcg-why-button::before {

    content: '';

    position: absolute;

    top: -1px;
    left: 0;

    width: 32px;
    height: 2px;

    background: #C49637;
}


/* ==========================================================
   CTA HOVER
   ========================================================== */

.hcg-why-button:hover {

    background: #C49637;

    border-color: #C49637;

    color: #ffffff !important;

    transform:
        translateY(-2px);
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {

    .hcg-why-pertecnica-section {

        padding:
            62px 0 66px;
    }


    .hcg-why-pertecnica-section
    .hcg-container {

        padding-left: 22px;
        padding-right: 22px;
    }


    .hcg-why-header {

        margin-bottom: 38px;
    }


    .hcg-why-grid {

        grid-template-columns: 1fr;

        gap: 18px;
    }


    .hcg-why-card {

        min-height: auto;

        padding:
            26px 28px;
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .hcg-why-pertecnica-section {

        padding:
            50px 0 54px;
    }


    .hcg-why-pertecnica-section
    .hcg-container {

        padding-left: 18px;
        padding-right: 18px;
    }


    .hcg-why-pertecnica-section::after {

        width: 110px;
        height: 110px;
    }


    .hcg-why-header {

        margin-bottom: 32px;

        text-align: left;
    }


    .hcg-why-label {

        font-size: 14px;
    }


    .hcg-why-header h2 {

        font-size: 26px;

        line-height: 1.3;
    }


    .hcg-why-header p {

        font-size: 17px;

        line-height: 1.65;
    }


    .hcg-why-header::after {

        margin-left: 0;
        margin-right: 0;
    }


    .hcg-why-card {

        padding:
            24px 22px;

        border-left-width: 3px;
    }


    .hcg-why-card h3 {

        font-size: 22px;
    }


    .hcg-why-card p {

        font-size: 17px;
    }


    .hcg-why-footer {

        margin-top: 34px;
    }


    .hcg-why-button {

        width: 100%;

        min-height: 50px;
    }
}

.hcg-why-card-image{margin:-24px -24px 20px;overflow:hidden;border-radius:12px 12px 0 0;height:180px}.hcg-why-card-image img{width:100%;height:100%;object-fit:cover;display:block}.hcg-why-card{overflow:hidden}
