/* =========================================================
   FOOTER
========================================================= */
:root {
  --background: #222334;
  --panel: #121a2a;
  --panel-light: #151d2c;
  --border: #27344c;
  --text: #f4f5fa;
  --muted: #d1d4df;
  --red: #e00000;
  --dark-red: #a90000;
  --circle: #202a40;
}
.px-footer {
    position: relative;

    width: 100%;
    

    margin: 0 auto;

    padding:
        clamp(60px, 6vw, 100px)
        clamp(20px, 3vw, 58px)
        clamp(45px, 5vw, 65px);

    /*
       IMPORTANT:
       Keeps the footer solid dark so any image/background
       behind the footer cannot show through.
    */
    background: #101522;

    overflow: hidden;

    z-index: 10;
}


/* =========================================================
   MAIN FOOTER GRID
========================================================= */

.px-footer-main {
    display: grid;

    grid-template-columns:
        minmax(260px, 1fr)
        minmax(420px, 1.7fr)
        minmax(280px, 0.9fr);

    gap: clamp(22px, 2.5vw, 38px);

    align-items: start;
}


/* =========================================================
   COMMON CARD
========================================================= */

.px-footer-card {
    position: relative;

    width: 100%;

    border: 1px solid var(--border);

    border-radius: 15px;

    background: #222334;
}


/* =========================================================
   BRAND CARD WRAPPER
========================================================= */

.px-footer-brand-card-wrapper {
    position: relative;

    width: 100%;
}


/* =========================================================
   BRAND CARD
   KEEP ORIGINAL ANGLED SHAPE
========================================================= */

.px-footer-brand-card {
    position: relative;

    min-height: 480px;

    padding:
        clamp(30px, 3vw, 42px)
        clamp(25px, 2.5vw, 38px);

    overflow: hidden;

    clip-path: polygon(
        0 0,
        100% 0,
        96% 100%,
        0 100%
    );
}

.px-footer-image-logo {
    width: 60%;
    padding-top: 5px;
    margin-bottom: -40px;
}
/* =========================================================
   REMOVE ONLY THE UNWANTED RIGHT RED ANGLED LINE
========================================================= */
.px-footer-brand-card-wrapper::after {
  content: "";

  position: absolute;

  /*
     Responsive position instead of fixed 47px.
  */
  right: 19px;

  top:16px;

  width: 6px;

  /*
     Uses wrapper height so it follows the card
     on different screen sizes.
  */
  height: calc(97% - 2px);

  background: #990000;

  /*
     Matches the angled edge of the card.
  */
  transform: rotate(2.8deg);

  transform-origin: bottom right;

  z-index: 10;

  pointer-events: none;
}


/* =========================================================
   BRAND CARD BOTTOM RED LINE
   KEEP THIS
========================================================= */

.px-footer-brand-card::before {
    content: "";

    position: absolute;

    left: 10px;
    right: 10px;

    bottom: -7px;

    height: 9px;

    background: #9d0000;

    border-radius: 0 0 14px 14px;
}


/* =========================================================
   LOGO
========================================================= */

.px-footer-logo {
    display: flex;

    align-items: center;

    gap: 16px;

    margin-bottom: 25px;
}


/* =========================================================
   LOGO MARK
========================================================= */

.px-footer-logo-mark {
    display: flex;

    gap: 8px;

    transform: skew(-25deg);

    flex-shrink: 0;
}

.px-footer-logo-mark span {
    width: 28px;
    height: 46px;

    display: block;

    background: #990000;
}


/* =========================================================
   LOGO TEXT
========================================================= */

.px-footer-logo-text {
    font-size: clamp(22px, 2vw, 34px);

    font-weight: 700;

    letter-spacing: 1px;

    white-space: nowrap;
}


/* =========================================================
   BRAND DESCRIPTION
========================================================= */

.px-footer-brand-description {
    width: 100%;

    max-width: 408px;

    color: var(--muted);

    font-size: clamp(14px, 1vw, 16px);
    

    line-height:1.6;
}


/* =========================================================
   SMALL RED LINE INSIDE BRAND CARD
========================================================= */

.px-footer-red-line {
    width: 60px;

    height: 3px;

    background: #990000;

    margin-top: 34px;
}


/* =========================================================
   NAVIGATION CARD
========================================================= */

.px-footer-navigation-card {
    min-height: 307px;

    padding:
        clamp(25px, 2.5vw, 32px)
        clamp(25px, 3vw, 38px);

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: clamp(25px, 3vw, 35px);

    box-shadow:
        0 17px 24px rgba(0, 0, 0, 0.15);
        
}


/* =========================================================
   NAVIGATION COLUMN
========================================================= */

.px-footer-nav-column {
    min-width: 0;

    padding-right:
        clamp(15px, 2vw, 25px);

    border-right: 1px solid #2b3448;
}

.px-footer-nav-column:last-child {
    border-right: none;
}


/* =========================================================
   NAVIGATION HEADING
========================================================= */

.px-footer-nav-heading {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 20px;

    position: relative;

    right: 30px;

    margin-bottom: 30px;

    white-space: nowrap;
}


/* =========================================================
   NAVIGATION ICON
========================================================= */

.px-footer-nav-heading i {
    color: #990000;

    font-size: 29px;

    width: 34px;

    text-align: center;

    flex-shrink: 0;
}


/* =========================================================
   NAVIGATION HEADING TEXT
========================================================= */

.px-footer-nav-heading h3 {
    font-size:
        clamp(18px, 1.3vw, 21px);

    font-weight: 500;

    position: relative;

    white-space: nowrap;
}

.px-footer-nav-heading h3::after {
    content: "";

    position: absolute;

    left: 0;

    bottom: -13px;

    width: 25px;

    height: 2px;

    background: #990000;
}


/* =========================================================
   NAVIGATION LINKS
   IMPORTANT:
   KEEP LINKS VERTICAL
========================================================= */

.px-footer-nav-links {
    display: block;

    list-style: none;

    text-align: left;

    width: max-content;

    max-width: 100%;

    margin: 0 auto;

    padding: 0;
}


/* =========================================================
   NAVIGATION LINK ITEMS
========================================================= */

.px-footer-nav-links li {
    display: block;

    width: 100%;

    margin: 15px 0;

    padding: 0;
}


/* =========================================================
   NAVIGATION LINKS
========================================================= */

.px-footer-nav-links a {
    display: inline-block;

    color: var(--muted);

    text-decoration: none;

    font-size:
        clamp(14px, 1vw, 16px);

    white-space: nowrap;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.px-footer-nav-links a:hover {
    color: #990000;

    transform: translateX(2px);
}


/* =========================================================
   CONTACT CARD
========================================================= */

.px-footer-contact-card {
    min-height: 307px;

    padding:
        clamp(25px, 2.5vw, 30px);
}


/* =========================================================
   CONTACT TITLE
========================================================= */

.px-footer-contact-title {
    display: flex;

    align-items: center;

    gap: 22px;

    margin-bottom: 30px;
}

.px-footer-contact-title i {
    color: #990000;

    font-size: 32px;

    flex-shrink: 0;
}

.px-footer-contact-title h3 {
    font-size:
        clamp(19px, 1.4vw, 22px);

    font-weight: 500;

    position: relative;
}

.px-footer-contact-title h3::after {
    content: "";

    position: absolute;

    left: 0;

    bottom: -12px;

    width: 27px;

    height: 2px;

    background: #990000;
}


/* =========================================================
   CONTACT ITEMS
========================================================= */

.px-footer-contact-item {
    display: flex;

    align-items: flex-start;

    gap: 22px;

    margin: 25px 0;

    color: var(--muted);

    font-size:
        clamp(13px, 0.95vw, 15px);

    line-height: 1.55;
}

.px-footer-contact-item i {
    color: #990000;

    font-size: 27px;

    width: 30px;

    text-align: center;

    margin-top: 2px;

    flex-shrink: 0;
}


/* =========================================================
   FOOTER CTA + SOCIALS
========================================================= */

.px-footer-bottom-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(180px, 0.3fr);

    gap: 0;

    margin-top: -90px;

    margin-left: 28.5%;
    
}


/* =========================================================
   CTA
========================================================= */

.px-footer-cta {
    position: relative;

    min-height: 87px;

    display: flex;

    align-items: center;

    gap:
        clamp(18px, 2vw, 38px);

    padding:
        0
        clamp(30px, 4vw, 70px);

    background:
        linear-gradient(
            105deg,
            #bd0000,
            #990000
        );

    
}


/* =========================================================
   CTA ARROW
========================================================= */

.px-footer-cta-arrow {
    font-size: 29px;

    font-weight: 700;

    flex-shrink: 0;
}


/* =========================================================
   CTA DIVIDER
========================================================= */

.px-footer-cta-divider {
    width: 1px;

    height: 35px;

    background:
        rgba(255, 255, 255, 0.45);

    flex-shrink: 0;
}


/* =========================================================
   CTA MAIN TEXT
========================================================= */

.px-footer-cta strong {
    font-size:
        clamp(14px, 1vw, 16px);

    white-space: nowrap;
}


/* =========================================================
   CTA SMALL TEXT
========================================================= */

.px-footer-cta span {
    color: #e2a8a8;

    font-size:
        clamp(12px, 0.9vw, 14px);

    margin-left: 25px;
}


/* =========================================================
   SOCIALS
========================================================= */

.px-footer-socials {
    min-height: 87px;

    border: 1px solid var(--border);

    border-left: none;

    border-radius:
        0 13px 13px 0;

    display: flex;

    align-items: center;

    justify-content: center;

    gap:
        clamp(10px, 1vw, 16px);
}


/* =========================================================
   SOCIAL LINKS
========================================================= */

.px-footer-socials a {
    width: 43px;

    height: 43px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #222334;

    color: white;

    text-decoration: none;

    font-size: 18px;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.px-footer-socials a:hover {
    color: #990000;

    transform: translateY(-3px);
}


/* =========================================================
   COPYRIGHT
========================================================= */

.px-footer-copyright {
    position: relative;

    margin-top: 45px;

    padding-top: 42px;

    border-top: 1px solid var(--border);

    text-align: center;

    color: #d2d4dc;

    font-size: 14px;
}


/* =========================================================
   COPYRIGHT RED LINES
========================================================= */

.px-footer-copyright::before,
.px-footer-copyright::after {
    content: "";

    position: absolute;

    top: 53px;

    width: 100px;

    height: 3px;

    background: #990000;
}

.px-footer-copyright::before {
    left: 0;
}

.px-footer-copyright::after {
    right: 0;
}


/* =========================================================
   LARGE LAPTOP / SMALL DESKTOP
   1200px
========================================================= */

@media (max-width: 1200px) {

    .px-footer {
        background: #101522;
    }

    .px-footer-main {
        grid-template-columns: 1fr 1.4fr;
    }

    .px-footer-brand-card-wrapper {
        grid-column: 1;
    }

    .px-footer-navigation-card {
        grid-column: 2;
    }

    .px-footer-contact-card {
        grid-column: 1 / -1;
    }

    .px-footer-bottom-row {
        margin-left: 0;

        margin-top: 40px;
    }

    /* ONLY remove unwanted red edge */

    .px-footer-brand-card-wrapper::after {
        content: none !important;

        display: none !important;
    }
}


/* =========================================================
   992px
========================================================= */

@media (max-width: 992px) {

    .px-footer {
        padding-top: 70px;

        background: #101522;
    }

    .px-footer-main {
        grid-template-columns: 1fr;
    }

    .px-footer-brand-card-wrapper,
    .px-footer-navigation-card,
    .px-footer-contact-card {
        grid-column: auto;
    }

    .px-footer-brand-card {
        min-height: 350px;

        /* KEEP ANGLED SHAPE */
        clip-path: polygon(
            0 0,
            100% 0,
            90% 100%,
            0 100%
        );
    }

    .px-footer-navigation-card {
        min-height: auto;
    }

    .px-footer-contact-card {
        min-height: auto;
    }

    .px-footer-bottom-row {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(190px, 0.35fr);

        margin-top: 40px;
    }

    .px-footer-brand-card-wrapper::after {
        content: none !important;

        display: none !important;
    }
}


/* =========================================================
   TABLET / SMART DISPLAY
   768px
========================================================= */

@media (max-width: 768px) {

    .px-footer {
        padding:
            60px
            24px
            45px;

        background: #101522;
    }


    /* -----------------------------------------
       BRAND CARD
       KEEP ORIGINAL ANGLED DESIGN
    ----------------------------------------- */

    .px-footer-brand-card {
        min-height: 330px;

        padding:
            32px
            30px;

        clip-path: polygon(
            0 0,
            100% 0,
            94% 100%,
            0 100%
        );
    }


    /* -----------------------------------------
       REMOVE ONLY RED ANGLED LINE
    ----------------------------------------- */

    .px-footer-brand-card-wrapper::after {
        content: none !important;

        display: none !important;
    }


    /* -----------------------------------------
       NAVIGATION
    ----------------------------------------- */

    .px-footer-navigation-card {
        grid-template-columns:
            1fr 1fr;

        gap: 20px;

        padding:
            28px
            24px;
    }

    .px-footer-nav-column {
        padding-right: 15px;
    }

    .px-footer-nav-heading {
        gap: 12px;
    }

    .px-footer-nav-heading i {
        font-size: 24px;

        width: 28px;
    }

    .px-footer-nav-heading h3 {
        font-size: 18px;
    }


    /* -----------------------------------------
       NAVIGATION LINKS
    ----------------------------------------- */

    .px-footer-nav-links {
        display: block;

        width: max-content;

        max-width: 100%;

        margin: 0 auto;

        text-align: left;
    }

    .px-footer-nav-links li {
        display: block;

        width: 100%;

        margin: 15px 0;
    }

    .px-footer-nav-links a {
        display: inline-block;

        white-space: nowrap;
    }


    /* -----------------------------------------
       CONTACT
    ----------------------------------------- */

    .px-footer-contact-card {
        padding:
            28px
            24px;
    }


    /* -----------------------------------------
       CTA
    ----------------------------------------- */

    .px-footer-bottom-row {
        grid-template-columns: 1fr;

        margin-top: 35px;
    }

    .px-footer-cta {
        min-height: 90px;

        padding:
            0
            30px;

        gap: 18px;

        clip-path: none;

        border-radius:
            12px
            12px
            0
            0;
    }

    .px-footer-socials {
        min-height: 82px;

        border-left:
            1px solid var(--border);

        border-radius:
            0
            0
            12px
            12px;
    }
}


/* =========================================================
   LARGE MOBILE
   576px
========================================================= */

@media (max-width: 576px) {

    .px-footer {
        padding:
            50px
            18px
            40px;

        background: #101522;
    }


    /* -----------------------------------------
       BRAND CARD
    ----------------------------------------- */

    .px-footer-brand-card {
        min-height: 310px;

        padding:
            30px
            25px;

        /* KEEP ANGLED SHAPE */
        clip-path: polygon(
            0 0,
            100% 0,
            95% 100%,
            0 100%
        );
    }

    .px-footer-brand-card-wrapper::after {
        content: none !important;

        display: none !important;
    }


    /* -----------------------------------------
       LOGO
    ----------------------------------------- */

    .px-footer-logo {
        gap: 12px;
    }

    .px-footer-logo-mark {
        gap: 6px;
    }

    .px-footer-logo-mark span {
        width: 22px;

        height: 37px;
    }

    .px-footer-logo-text {
        font-size: 24px;
    }


    /* -----------------------------------------
       DESCRIPTION
    ----------------------------------------- */

    .px-footer-brand-description {
        font-size: 14px;

        line-height: 1.65;
    }


    /* -----------------------------------------
       NAVIGATION
    ----------------------------------------- */

    .px-footer-navigation-card {
        grid-template-columns: 1fr;

        gap: 0;

        padding:
            25px
            22px;
    }

    .px-footer-nav-column {
        padding:
            0
            0
            22px;

        margin-bottom: 22px;

        border-right: none;

        border-bottom:
            1px solid #2b3448;
    }

    .px-footer-nav-column:last-child {
        padding-bottom: 0;

        margin-bottom: 0;

        border-bottom: none;
    }

    .px-footer-nav-heading {
        justify-content: center;

        margin-bottom: 25px;
    }


    /* -----------------------------------------
       CONTACT
    ----------------------------------------- */

    .px-footer-contact-card {
        padding:
            25px
            22px;
    }

    .px-footer-contact-title {
        gap: 15px;
    }

    .px-footer-contact-title i {
        font-size: 27px;
    }


    /* -----------------------------------------
       CTA
    ----------------------------------------- */

    .px-footer-cta {
        min-height: 85px;

        padding:
            0
            22px;

        gap: 14px;
    }

    .px-footer-cta-arrow {
        font-size: 24px;
    }

    .px-footer-cta-divider {
        height: 28px;
    }

    .px-footer-cta strong {
        font-size: 14px;
    }

    .px-footer-cta span {
        display: none;
    }


    /* -----------------------------------------
       SOCIALS
    ----------------------------------------- */

    .px-footer-socials {
        min-height: 78px;
    }

    .px-footer-socials a {
        width: 40px;

        height: 40px;

        font-size: 16px;
    }


    /* -----------------------------------------
       COPYRIGHT
    ----------------------------------------- */

    .px-footer-copyright {
        margin-top: 35px;

        padding-top: 30px;

        font-size: 12px;
    }

    .px-footer-copyright::before,
    .px-footer-copyright::after {
        display: none;
    }
}


/* =========================================================
   SMALL MOBILE
   400px
========================================================= */

@media (max-width: 400px) {

    .px-footer {
        padding:
            42px
            14px
            35px;

        background: #101522;
    }


    /* BRAND */

    .px-footer-brand-card {
        min-height: 290px;

        padding:
            27px
            20px;

        /* KEEP ANGLED SHAPE */
        clip-path: polygon(
            0 0,
            100% 0,
            96% 100%,
            0 100%
        );
    }

    .px-footer-brand-card-wrapper::after {
        content: none !important;

        display: none !important;
    }


    /* LOGO */

    .px-footer-logo {
        gap: 10px;

        margin-bottom: 20px;
    }

    .px-footer-logo-mark {
        gap: 5px;
    }

    .px-footer-logo-mark span {
        width: 19px;

        height: 32px;
    }

    .px-footer-logo-text {
        font-size: 21px;
    }


    /* DESCRIPTION */

    .px-footer-brand-description {
        font-size: 13px;

        line-height: 1.6;
    }

    .px-footer-red-line {
        margin-top: 25px;
    }


    /* NAVIGATION */

    .px-footer-navigation-card {
        padding:
            22px
            18px;
    }

    .px-footer-nav-heading {
        gap: 10px;
    }

    .px-footer-nav-heading i {
        font-size: 22px;

        width: 25px;
    }

    .px-footer-nav-heading h3 {
        font-size: 17px;
    }

    .px-footer-nav-links li {
        margin: 13px 0;
    }

    .px-footer-nav-links a {
        font-size: 13px;
    }


    /* CONTACT */

    .px-footer-contact-card {
        padding:
            23px
            18px;
    }

    .px-footer-contact-item {
        gap: 14px;

        font-size: 13px;

        margin: 20px 0;
    }

    .px-footer-contact-item i {
        font-size: 23px;

        width: 25px;
    }


    /* CTA */

    .px-footer-cta {
        min-height: 78px;

        padding:
            0
            18px;
    }

    .px-footer-cta-arrow {
        font-size: 21px;
    }

    .px-footer-cta-divider {
        height: 25px;
    }

    .px-footer-cta strong {
        font-size: 13px;
    }


    /* SOCIALS */

    .px-footer-socials {
        min-height: 72px;

        gap: 10px;
    }

    .px-footer-socials a {
        width: 37px;

        height: 37px;

        font-size: 15px;
    }
}


/* =========================================================
   VERY SMALL PHONES
   340px
========================================================= */

@media (max-width: 340px) {

    .px-footer {
        padding-left: 10px;

        padding-right: 10px;

        background: #101522;
    }


    .px-footer-brand-card {
        padding:
            25px
            17px;

        /* KEEP ANGLED SHAPE */
        clip-path: polygon(
            0 0,
            100% 0,
            96% 100%,
            0 100%
        );
    }

    .px-footer-brand-card-wrapper::after {
        content: none !important;

        display: none !important;
    }


    .px-footer-logo-text {
        font-size: 19px;
    }

    .px-footer-logo-mark span {
        width: 17px;

        height: 29px;
    }


    .px-footer-navigation-card {
        padding:
            20px
            14px;
    }


    .px-footer-contact-card {
        padding:
            20px
            14px;
    }


    .px-footer-cta {
        padding:
            0
            14px;
    }

    .px-footer-cta strong {
        font-size: 12px;
    }


    .px-footer-socials a {
        width: 35px;

        height: 35px;
    }
}

