﻿/* ==========================================================
   GSMUnlockUSA Shared Footer V2.8 - Refined WOW
   ----------------------------------------------------------
   The diagonal texture is derived directly from the uploaded
   production /images/headerbg1.png.

   Source facts:
   - headerbg1.png = 78 x 95 px
   - blue texture = rows 0..93
   - yellow separator = row 94 (excluded from texture tile)
   - texture period = exactly 3 px
   - diagonal phase reproduced in gsm-header-pattern-exact.png

   This avoids:
   - repeating the yellow separator
   - stretching the 95px header graphic vertically
   - approximating the stripe angle/density by eye
   ========================================================== */

.gsm-site-footer,
.gsm-site-footer * {
    box-sizing: border-box;
}

.gsm-site-footer {
    position: relative;
    width: 100%;
    margin-top: 26px;
    color: #eef6ff;
    background-color: #2252a4;
    background-image:
        url("../images/gsm-header-pattern-exact.png"),
        linear-gradient(
            180deg,
            #3068c5 0%,
            #2c61bb 18%,
            #2252a4 40%,
            #17428d 64%,
            #092f73 84%,
            #092f73 100%
        );
    background-repeat: repeat, no-repeat;
    background-size: 3px 3px, 100% 100%;
    border-top: 3px solid rgb(225, 252, 0);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 -3px 12px rgba(0,29,66,.08);
}

.gsm-site-footer a {
    text-decoration: none;
    transition:
        color .16s ease,
        background-color .16s ease,
        border-color .16s ease,
        transform .16s ease,
        box-shadow .16s ease;
}

.gsm-site-footer a:focus,
.gsm-site-footer button:focus {
    outline: 2px solid #e1fc00;
    outline-offset: 2px;
}

/* Fixed-width centered rhythm matching the current Bootstrap site. */
.gsm-footer-inner {
    width: calc(100% - 30px);
    max-width: 1170px;
    margin: 0 auto;
}

/* ==========================================================
   QUICK ACTIONS
   ========================================================== */

.gsm-footer-actions {
    position: relative;
    overflow: hidden;
    background: rgba(1, 45, 98, .12);
    border-bottom: 1px solid rgba(255,255,255,.15);
    box-shadow:
        inset 0 -1px 0 rgba(0,24,56,.26),
        inset 0 1px 0 rgba(255,255,255,.05);
}

.gsm-footer-actions:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(225,252,0,.38) 20%,
        rgba(225,252,0,.38) 80%,
        transparent
    );
    pointer-events: none;
}

.gsm-footer-action-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gsm-footer-action {
    min-width: 0;
    min-height: 62px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f5f9ff;
    border-right: 1px solid rgba(255,255,255,.13);
    background: rgba(0,29,73,.035);
}

.gsm-footer-action:first-child {
    border-left: 1px solid rgba(255,255,255,.13);
}

.gsm-footer-action:hover {
    color: #ffffff;
    background: rgba(255,255,255,.075);
}

.gsm-footer-action-icon {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: #eef9ff;
    background: rgba(84,166,225,.25);
    border: 1px solid rgba(184,225,252,.15);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 2px 7px rgba(0,28,65,.10);
}

.gsm-footer-action-icon svg,
.gsm-footer-panel-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gsm-footer-action-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.gsm-footer-action-copy strong {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(0,0,0,.17);
}

.gsm-footer-action-copy small {
    margin-top: 2px;
    color: #c5dff2;
    font-size: 10px;
    line-height: 1.2;
}

.gsm-footer-action-arrow {
    margin-left: auto;
    color: #f0df4c;
    font-size: 21px;
    line-height: 1;
}

/* ==========================================================
   MAIN CONTENT
   The parent already owns the exact pattern tile, so the main
   area only adds depth; it does not introduce another pattern.
   ========================================================== */

.gsm-footer-main {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        rgba(0,35,81,.00) 0%,
        rgba(0,25,66,.12) 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.04),
        inset 0 -28px 52px rgba(0,18,47,.07);
}

.gsm-footer-main:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1170px;
    max-width: calc(100% - 30px);
    transform: translateX(-50%);
    background: linear-gradient(
        90deg,
        rgba(0,25,62,.02),
        rgba(255,255,255,.008) 18%,
        rgba(255,255,255,.008) 82%,
        rgba(0,25,62,.02)
    );
    pointer-events: none;
}

.gsm-footer-nav-layout {
    position: relative;
    z-index: 1;
    padding: 26px 0 18px;
    display: grid;
    grid-template-columns: 1.30fr 3.70fr;
    gap: 30px;
    align-items: start;
}

.gsm-footer-brand-block {
    min-width: 0;
}

.gsm-footer-brand {
    display: inline-flex;
    align-items: center;
}

.gsm-footer-brand-logo {
    display: block;
    width: auto;
    height: 68px;
    max-width: 360px;
    object-fit: contain;
    filter:
        drop-shadow(0 3px 7px rgba(0,15,45,.28))
        drop-shadow(0 0 2px rgba(255,255,255,.05));
}

.gsm-footer-brand-text {
    margin: 11px 0 0;
    max-width: 310px;
    color: #e4f0fa;
    font-size: 12px;
    line-height: 1.58;
    text-shadow: 0 1px 0 rgba(0,0,0,.08);
}

.gsm-footer-brand-actions {
    margin-top: 13px;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
}

.gsm-footer-btn {
    min-height: 35px;
    padding: 7px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
}

.gsm-footer-btn-primary {
    color: #073c70;
    background: #ffffff;
    border: 1px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0,20,50,.16);
}

.gsm-footer-btn-primary:hover {
    color: #073c70;
    background: #faffdb;
    border-color: #faffdb;
    transform: translateY(-1px);
}

.gsm-footer-btn-secondary {
    color: #ffffff;
    background: rgba(0,35,79,.31);
    border: 1px solid rgba(255,255,255,.28);
}

.gsm-footer-btn-secondary:hover {
    color: #ffffff;
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.38);
    transform: translateY(-1px);
}

.gsm-footer-brand-meta {
    margin-top: 11px;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
}

.gsm-footer-brand-meta span {
    padding: 4px 8px;
    border-radius: 4px;
    color: #f1f8ff;
    background: rgba(2,35,75,.34);
    border: 1px solid rgba(255,255,255,.13);
    font-size: 9px;
    font-weight: 700;
}

.gsm-footer-service-note {
    margin: 10px 0 0;
    max-width: 310px;
    color: #acd0e9;
    font-size: 9px;
    line-height: 1.5;
}

/* ==========================================================
   LINK GROUPS
   ========================================================== */

.gsm-footer-link-groups {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.gsm-footer-group {
    min-width: 0;
}

.gsm-footer-group-title {
    position: relative;
    width: 100%;
    min-height: 31px;
    padding: 0 0 9px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.18);
    color: #f0df4c;
    background: transparent;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    text-shadow: 0 1px 0 rgba(0,0,0,.20);
    cursor: default;
}

.gsm-footer-group-title:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 44px;
    height: 2px;
    border-radius: 1px;
    background: linear-gradient(90deg, #f0df4c, rgba(240,223,76,.20));
}

.gsm-footer-group-chevron {
    display: none;
}

.gsm-footer-group-body {
    padding-top: 8px;
}

.gsm-footer-link {
    min-height: 27px;
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f0f7fe;
    font-size: 11px;
    line-height: 1.35;
    text-shadow: 0 1px 0 rgba(0,0,0,.07);
}

.gsm-footer-link:hover {
    color: #fff17a;
    padding-left: 2px;
}

.gsm-footer-link span:first-child {
    min-width: 0;
}

.gsm-footer-link-arrow {
    margin-left: auto;
    flex: 0 0 auto;
    color: #f0df4c;
    opacity: 0;
    transform: translateX(-2px);
}

.gsm-footer-link:hover .gsm-footer-link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================
   SECURITY / PAYMENTS
   ========================================================== */

.gsm-footer-divider {
    position: relative;
    z-index: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.22) 8%,
        rgba(255,255,255,.22) 92%,
        transparent
    );
}

.gsm-footer-trust-grid {
    position: relative;
    z-index: 1;
    padding: 18px 0 20px;
    display: grid;
    grid-template-columns: .90fr 1.50fr;
    gap: 14px;
}

.gsm-footer-trust-panel,
.gsm-footer-payment-panel {
    position: relative;
    min-width: 0;
    padding: 14px 16px;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(1,34,77,.46);
    border: 1px solid rgba(166,212,244,.17);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.04),
        0 5px 16px rgba(0,19,48,.08);
}

.gsm-footer-trust-panel:before,
.gsm-footer-payment-panel:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 78px;
    height: 2px;
    background: linear-gradient(90deg, #f0df4c, rgba(240,223,76,0));
}

.gsm-footer-panel-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gsm-footer-panel-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #f0df4c;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.11);
}

.gsm-footer-panel-heading strong,
.gsm-footer-panel-heading small {
    display: block;
}

.gsm-footer-panel-heading strong {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.gsm-footer-panel-heading small {
    margin-top: 1px;
    color: #b5d0e5;
    font-size: 9px;
}

.gsm-footer-security-list {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 12px;
}

.gsm-footer-security-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #eff7fd;
    font-size: 10px;
}

.gsm-footer-check {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(180deg, #43b77e, #2e9566);
    border: 1px solid rgba(255,255,255,.18);
    font-size: 9px;
    font-weight: 700;
}

.gsm-footer-inline-link {
    margin-top: 9px;
    display: inline-block;
    color: #f0df4c;
    font-size: 10px;
    font-weight: 700;
}

.gsm-footer-inline-link:hover {
    color: #ffffff;
}

.gsm-footer-payment-chips {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gsm-footer-payment-chip {
    min-height: 27px;
    padding: 4px 9px;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    color: #ffffff;
    background: rgba(255,255,255,.085);
    border: 1px solid rgba(255,255,255,.16);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1px;
}

.gsm-footer-payment-crypto {
    color: #edfff5;
    background: rgba(24,117,78,.39);
    border-color: rgba(112,215,163,.23);
}

.gsm-footer-payment-note {
    margin-top: 9px;
    padding-top: 8px;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: #bed6e8;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: 9px;
    line-height: 1.45;
}

.gsm-footer-payment-note-icon {
    color: #6fdda9;
    font-weight: 800;
}

.gsm-footer-payment-note a {
    color: #f0df4c;
    font-weight: 700;
}

.gsm-footer-payment-note a:hover {
    color: #ffffff;
}

/* ==========================================================
   LEGAL BAR
   Use the darkest source-derived header blue.
   ========================================================== */

.gsm-footer-legal {
    position: relative;
    background-color: #04255e;
    background-image: url("../images/gsm-header-pattern-exact.png");
    background-repeat: repeat;
    background-size: 3px 3px;
    border-top: 1px solid rgba(255,255,255,.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.gsm-footer-legal-inner {
    min-height: 46px;
    padding-top: 9px;
    padding-bottom: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.gsm-footer-copyright {
    color: #d0e1ef;
    font-size: 10px;
}

.gsm-footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 17px;
}

.gsm-footer-legal-links a {
    color: #dfedf7;
    font-size: 10px;
}

.gsm-footer-legal-links a:hover {
    color: #f0df4c;
}

/* ==========================================================
   RESPONSIVE - mirrors Bootstrap container widths.
   ========================================================== */

@media (min-width: 1200px) {
    .gsm-footer-brand-actions {
        flex-wrap: nowrap;
    }

    .gsm-footer-brand-meta {
        flex-wrap: nowrap;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .gsm-footer-brand-actions,
    .gsm-footer-brand-meta {
        flex-wrap: wrap;
    }

    .gsm-footer-inner {
        max-width: 970px;
    }

    .gsm-footer-main:before {
        width: 970px;
        max-width: calc(100% - 30px);
    }

    .gsm-footer-nav-layout {
        grid-template-columns: 1fr;
        gap: 23px;
    }

    .gsm-footer-brand-text {
        max-width: 620px;
    }

    .gsm-footer-action-copy small {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .gsm-footer-inner {
        max-width: 750px;
    }

    .gsm-footer-main:before {
        width: 750px;
        max-width: calc(100% - 30px);
    }
}

@media (max-width: 991px) {
    .gsm-footer-nav-layout {
        grid-template-columns: 1fr;
        gap: 23px;
    }

    .gsm-footer-brand-text {
        max-width: 620px;
    }

    .gsm-footer-action-copy small {
        display: none;
    }

    .gsm-footer-action-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gsm-footer-action:nth-child(3) {
        border-right: 0;
    }

    .gsm-footer-action:nth-child(4),
    .gsm-footer-action:nth-child(5) {
        border-top: 1px solid rgba(255,255,255,.12);
    }

    .gsm-footer-link-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 30px;
    }

    .gsm-footer-trust-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   MOBILE ACCORDION
   ========================================================== */

@media (max-width: 767px) {
    .gsm-site-footer {
        margin-top: 18px;
        border-top-width: 2px;
    }

    .gsm-footer-inner {
        width: calc(100% - 22px);
    }

    .gsm-footer-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gsm-footer-action {
        min-height: 54px;
        padding: 9px;
        border-top: 1px solid rgba(255,255,255,.12);
    }

    .gsm-footer-action:nth-child(1),
    .gsm-footer-action:nth-child(2) {
        border-top: 0;
    }

    .gsm-footer-action:nth-child(2n) {
        border-right: 0;
    }

    .gsm-footer-action:nth-child(5) {
        grid-column: 1 / -1;
        border-right: 0;
    }

    .gsm-footer-action-icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .gsm-footer-action-icon svg {
        width: 16px;
        height: 16px;
    }

    .gsm-footer-action-copy strong {
        white-space: normal;
        font-size: 10px;
    }

    .gsm-footer-action-arrow {
        display: none;
    }

    .gsm-footer-nav-layout {
        padding: 23px 0 19px;
        gap: 20px;
    }

    .gsm-footer-brand-logo {
        height: 49px;
        max-width: 282px;
    }

    .gsm-footer-brand-text {
        font-size: 11px;
    }

    .gsm-footer-brand-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .gsm-footer-btn {
        width: 100%;
    }

    .gsm-footer-link-groups {
        display: block;
    }

    .gsm-footer-group {
        border-top: 1px solid rgba(255,255,255,.15);
    }

    .gsm-footer-group:last-child {
        border-bottom: 1px solid rgba(255,255,255,.15);
    }

    .gsm-footer-group-title {
        min-height: 45px;
        padding: 10px 2px;
        border-bottom: 0;
        cursor: pointer;
        font-size: 11px;
    }

    .gsm-footer-group-title:after {
        display: none;
    }

    .gsm-footer-group-chevron {
        width: 8px;
        height: 8px;
        display: inline-block;
        border-right: 1.5px solid #e1fc00;
        border-bottom: 1.5px solid #e1fc00;
        transform: rotate(45deg);
        transition: transform .18s ease;
    }

    .gsm-footer-group.is-open .gsm-footer-group-chevron {
        transform: rotate(225deg);
    }

    .gsm-footer-group-body {
        display: none;
        padding: 0 2px 10px;
    }

    .gsm-footer-group.is-open .gsm-footer-group-body {
        display: block;
    }

    .gsm-footer-link {
        min-height: 32px;
        padding: 6px 0;
        font-size: 10px;
    }

    .gsm-footer-link:hover {
        padding-left: 0;
    }

    .gsm-footer-link-arrow {
        opacity: .66;
        transform: none;
    }

    .gsm-footer-trust-grid {
        padding: 18px 0 20px;
    }

    .gsm-footer-trust-panel,
    .gsm-footer-payment-panel {
        padding: 13px;
    }

    .gsm-footer-security-list {
        grid-template-columns: 1fr;
    }

    .gsm-footer-legal-inner {
        padding-top: 12px;
        padding-bottom: 12px;
        display: block;
        text-align: center;
    }

    .gsm-footer-legal-links {
        margin-top: 8px;
        justify-content: center;
        gap: 6px 13px;
    }
}

@media (max-width: 420px) {
    .gsm-footer-action-grid {
        grid-template-columns: 1fr;
    }

    .gsm-footer-action,
    .gsm-footer-action:nth-child(1),
    .gsm-footer-action:nth-child(2),
    .gsm-footer-action:nth-child(3),
    .gsm-footer-action:nth-child(4),
    .gsm-footer-action:nth-child(5) {
        grid-column: auto;
        border-right: 0;
        border-top: 1px solid rgba(255,255,255,.12);
    }

    .gsm-footer-action:first-child {
        border-top: 0;
        border-left: 0;
    }

    .gsm-footer-brand-actions {
        grid-template-columns: 1fr;
    }

    .gsm-footer-brand-logo {
        height: 43px;
        max-width: 245px;
    }
}
