/* ==========================================================================
   G Force Security - Header & Footer
   ========================================================================== */

:root {
    --gf-red: #e22b2b;
    --gf-red-dark: #c41f1f;
    --gf-navy: #2b2668;
    --gf-navy-deep: #05022f;
    --gf-gold: #e3d58a;
    --gf-text: #4d4d4d;
    --gf-black: #333333;
    --gf-white: #fff;
    --gf-font-body: Verdana, Geneva, Tahoma, sans-serif;
    --gf-font-alt: "Lufga", "Lexend", sans-serif;
    --gf-header-h: 88px;

    /* Type scale (Figma text styles: Lufga H1–H4, Verdana Body 16) */
    --gf-h1: 58px;
    --gf-h2: 44px;
    --gf-h3: 36px;
    --gf-h4: 24px;
    --gf-body: 16px;
    --gf-body-lh: 26px;
    --gf-muted: #808080;

    /* Layout — overridden by Elementor Site Settings → Layout (see inc/layout.php) */
    --gf-site-width: 1600px;
    --gf-site-pad-l: 20px;
    --gf-site-pad-r: 20px;
    --gf-site-gap-col: 15px;
    --gf-site-gap-row: 15px;
}

@media (max-width: 1440px) {
    :root {
        --gf-h1: 62px;
        --gf-h2: 48px;
    }
}

@media (max-width: 1024px) {
    :root {
        --gf-h1: 54px;
        --gf-h2: 42px;
        --gf-h3: 32px;
    }
}

@media (max-width: 767px) {
    :root {
        --gf-site-pad-l: 16px;
        --gf-site-pad-r: 16px;
        --gf-h1: 36px;
        --gf-h2: 28px;
        --gf-h3: 24px;
        --gf-h4: 18px;
        --gf-body: 14px;
        --gf-body-lh: 26px;
    }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.gf-header {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    z-index: 999;
    background: rgba(255, 255, 255, .72);
    /*border-bottom: 1px solid #d7d7d7;*/
    box-shadow: 0 2px 30px 8px rgb(0 0 0 / 7%);
    transition: background-color .25s ease, box-shadow .25s ease;
}

/* Scrolled (class set by header.js): glossy, frosted-glass bar over the page content */
.gf-header.is-scrolled {
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 8px 30px rgb(20 20 40 / 8%), inset 0 1px 0 rgb(255 255 255 / 70%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
}

/* Browsers without backdrop-filter: keep the bar readable */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .gf-header.is-scrolled {
        background: rgba(255, 255, 255, .96);
    }
}

/* On small screens the WP admin bar scrolls away, so the header sticks to the very top */
@media (max-width: 600px) {
    .gf-header {
        top: 0;
    }
}

.gf-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: calc(var(--gf-site-width) + var(--gf-site-pad-l) + var(--gf-site-pad-r));
    min-height: var(--gf-header-h);
    margin: 0 auto;
    padding: 0 var(--gf-site-pad-r) 0 var(--gf-site-pad-l);
}

.gf-header__logo {
    flex-shrink: 0;
}

.gf-header__logo img,
.gf-header__logo .custom-logo {
    display: block;
    width: auto;
    max-height: 74px;
}

.gf-header__site-name {
    font-family: var(--gf-font-alt);
    font-size: 22px;
    font-weight: 700;
    color: var(--gf-navy);
    text-decoration: none;
}

.gf-header__panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: var(--gf-site-gap-col);
}

.gf-header__nav {
    flex: 1;
    display: flex;
    justify-content: start;
}

.gf-menu,
.gf-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gf-menu {
    display: flex;
    align-items: center;
    /*gap: clamp(24px, 3.6vw, 69px);*/
    gap: 30px;
}

.gf-menu > li {
    position: relative;
}

.gf-menu a {
    display: block;
    font-family: var(--gf-font-body);
    font-size: 16px;
    line-height: 31px;
    letter-spacing: -.32px;
    color: var(--gf-black);
    text-decoration: none;
    transition: color .2s ease;
}

.gf-menu > li > a {
    padding: 6px 0;
}

.gf-menu a:hover,
.gf-menu a:focus,
.gf-menu .current-menu-item > a,
.gf-menu .current-menu-ancestor > a {
    color: var(--gf-red);
}

/* Desktop dropdown */
.gf-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    min-width: 240px;
    padding: 10px 0;
    background: var(--gf-white);
    border-top: 3px solid var(--gf-red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .2s ease;
}

.gf-menu .sub-menu .sub-menu {
    top: -13px;
    left: 100%;
}

.gf-menu li:hover > .sub-menu,
.gf-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gf-menu .sub-menu a {
    padding: 8px 20px;
    font-size: 16px;
}

.gf-submenu-toggle {
    display: none;
}

/* Buttons */
.gf-header__actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 20px;
}

.gf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 14px 28px;
    font-family: var(--gf-font-alt);
    font-size: 16px;
    font-weight: 500;
    line-height: 26px;
    border-radius: 100px;
    text-decoration: none;
    transition: all .2s ease;
}

.gf-btn--red {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #e02828;
    border: none;
    color: var(--gf-white);
}

.gf-btn--red:hover,
.gf-btn--red:focus {
    background: var(--gf-red-dark);
    border-color: var(--gf-red-dark);
    color: var(--gf-white);
}

.gf-btn__label {
    position: relative;
    z-index: 1;
}

.gf-btn--outline {
    border: 1px solid var(--gf-black);
    color: var(--gf-black);
}

.gf-btn--inline {
    color: var(--gf-black);
    letter-spacing: -.32px;
    font-weight: 400;
}

.gf-btn--header2 {
	gap: 10px;
    position: relative;
    padding-left: 0;
    padding-right: 0;
}

.gf-btn--header2:after {
    position: absolute;
    content: ' ';
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #acacac;
}

.gf-btn--inline svg {
    width: 18px;
    transform: rotate(-90deg);
}

[class*="gf-"][class*="__subtitle"] {
    font-size: 16px;
    font-family: var(--gf-font-body);
}

.gf-btn--outline:hover,
.gf-btn--outline:focus {
    background: var(--gf-black);
    color: var(--gf-white);
}

.gf-btn__icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

/* Hamburger */
.gf-header__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--gf-black);
    border-radius: 4px;
    color: var(--gf-black);
    cursor: pointer;
}

.gf-header__toggle:hover,
.gf-header__toggle:focus {
    background: transparent;
    color: var(--gf-red);
}

.gf-header__toggle svg {
    display: block;
    width: 26px;
    height: 26px;
}

.gf-header__toggle-close {
    display: none;
}

@media (max-width: 1440px) {
    .gf-menu a {
        font-size: 16px;
    }

    .gf-btn {
        min-width: 0;
        padding: 12px 22px;
        min-height: 52px;
    }
}

@media (max-width: 1199px) {
    :root {
        --gf-header-h: 80px;
    }

    .gf-header__inner {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .gf-header__logo img,
    .gf-header__logo .custom-logo {
        max-height: 60px;
    }

    .gf-header__toggle {
        display: inline-flex;
    }

    .gf-header.is-open .gf-header__toggle-open {
        display: none;
    }

    .gf-header.is-open .gf-header__toggle-close {
        display: block;
    }

    .gf-header__panel {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        max-height: calc(100vh - var(--gf-header-h));
        padding: 10px var(--gf-site-pad-r) 30px var(--gf-site-pad-l);
        overflow-y: auto;
        background: var(--gf-white);
        border-top: 1px solid #e5e5e5;
        box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all .25s ease;
    }

    .gf-header.is-open .gf-header__panel {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .gf-header__nav {
        display: block;
    }

    .gf-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .gf-menu li {
        position: relative;
        border-bottom: 1px solid #eee;
    }

    .gf-menu > li > a,
    .gf-menu a {
        padding: 14px 50px 14px 0;
        font-size: 17px;
    }

    .gf-menu .sub-menu,
    .gf-menu .sub-menu .sub-menu {
        position: static;
        display: none;
        min-width: 0;
        padding: 0 0 0 15px;
        border-top: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .gf-menu .sub-menu li:last-child {
        border-bottom: 0;
    }

    .gf-menu li.is-open > .sub-menu {
        display: block;
    }

    .gf-submenu-toggle {
        display: block;
        position: absolute;
        top: 4px;
        right: 0;
        width: 44px;
        height: 44px;
        padding: 0;
        background: transparent;
        border: 0;
        cursor: pointer;
    }

    .gf-submenu-toggle::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 9px;
        height: 9px;
        border-right: 2px solid var(--gf-black);
        border-bottom: 2px solid var(--gf-black);
        transform: translate(-50%, -70%) rotate(45deg);
        transition: transform .2s ease;
    }

    .gf-submenu-toggle:hover,
    .gf-submenu-toggle:focus {
        background: transparent;
    }

    .is-open > .gf-submenu-toggle::before {
        transform: translate(-50%, -30%) rotate(-135deg);
    }

    .gf-header__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .gf-btn {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   Footer — values from Figma node 530:14413 (1920 × 1247)
   -------------------------------------------------------------------------- */
.gf-footer {
    position: relative;
    isolation: isolate;
    padding: 43px 0 44px;
    overflow: hidden;
    background-color: #2b2668;
    color: var(--gf-white);
}

/* Star-wave photo, luminosity blend at 30% */
.gf-footer::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: 104.58%;
    height: 100.71%;
    background-image: var(--gf-footer-bg, none);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: .3;
    mix-blend-mode: luminosity;
    transform: translate(-50%, calc(-50% - 4px));
    pointer-events: none;
}

.gf-footer a {
    color: var(--gf-white);
    text-decoration: none;
    transition: opacity .2s ease;
}

.gf-footer a:hover,
.gf-footer a:focus {
    color: var(--gf-white);
    opacity: .75;
}

.gf-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gf-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 839fr) minmax(0, 880fr);
    gap: 50px 57px; /* Figma 530:14540: 839 card | 57 | 880 menus */
    align-items: stretch;
    max-width: calc(var(--gf-site-width) + var(--gf-site-pad-l) + var(--gf-site-pad-r));
    margin: 0 auto;
    padding: 0 var(--gf-site-pad-r) 0 var(--gf-site-pad-l);
}

/* ---------- Left card ---------- */
.gf-footer__card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    padding-bottom: 17px;
    overflow: hidden;
    background-color: rgba(142, 142, 142, .2);
    border: 1px solid #e3e3e3;
    border-radius: 14px;
    container-type: inline-size;
    /* Hide the star-wave background behind the card so it reads as a flat colour */
    -webkit-backdrop-filter: blur(60px);
    backdrop-filter: blur(60px);
}

/* Decorative layer (glow + two rotated seal graphics) — sits above content like the design */
.gf-footer__fx {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}

.gf-footer__glow {
    position: absolute;
    top: -76.88cqw;
    left: 15.73cqw;
    width: 156.6cqw;
    max-width: none;
    height: auto;
}

.gf-footer__seal {
    position: absolute;
    overflow: hidden;
}

.gf-footer__seal img {
    position: absolute;
    top: 0;
    left: -16.67%;
    width: 133.33%;
    max-width: none;
    height: 100%;
}

.gf-footer__seal--big {
    bottom: -58.49cqw;
    left: 81.67cqw;
    width: 64.81cqw;
    height: 86.42cqw;
    transform: rotate(-30.61deg);
}

.gf-footer__seal--small {
    bottom: -21.97cqw;
    left: -21.43cqw;
    width: 28.65cqw;
    height: 38.2cqw;
    transform: rotate(39.19deg);
}

.gf-footer__card-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 17px 33px 51px;
}

.gf-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.gf-footer__logo img {
    display: block;
    width: 218px;
    max-width: 100%;
    height: auto;
}

.gf-footer__about,
.gf-footer__text,
.gf-footer__caps {
    margin: 0;
    font-family: var(--gf-font-body);
    font-size: var(--gf-body);
    font-weight: 400;
    line-height: var(--gf-body-lh);
    letter-spacing: -.02em;
    color: #e2e2e2;
}

.gf-footer a.gf-footer__text,
.gf-footer a.gf-footer__caps,
.gf-footer__menu a {
    color: #e2e2e2;
}

.gf-footer__about {
    max-width: 772px;
}

.gf-footer__block {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.gf-footer__block-body {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.gf-footer__title {
    margin: 0;
    font-family: var(--gf-font-alt);
    font-size: var(--gf-h4);
    font-weight: 600;
    line-height: 1.16;
    letter-spacing: -.02em;
    color: var(--gf-white);
}

.gf-footer__info {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.gf-footer__info--locations {
    gap: 14px;
}

.gf-footer__info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gf-footer__info-item--phone,
.gf-footer__info-item--clock {
    gap: 15px;
}

.gf-footer__icon {
    display: block;
    flex-shrink: 0;
}

.gf-footer__social {
    padding-left: 2px;
}

.gf-footer__social-title {
    margin: 0 0 18px;
    font-family: var(--gf-font-body);
    font-size: var(--gf-body);
    line-height: var(--gf-body-lh);
    letter-spacing: -.02em;
    color: #e2e2e2;
}

.gf-footer__social-list {
    display: flex;
    align-items: center;
    gap: 20.17px;
}

.gf-footer__social-list a,
.gf-footer__social-list img {
    display: block;
}

.gf-footer__banner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 74px;
    margin-top: auto;
    padding: 6px 33px 6px 77px;
    background-color: #e02828;
}

.gf-footer__banner p {
    max-width: 491px;
    margin: 0;
    font-family: var(--gf-font-body);
    font-size: var(--gf-body);
    line-height: var(--gf-body-lh);
    letter-spacing: -.02em;
    color: #e2e2e2;
}

/* ---------- Right: menu sections ---------- */
.gf-footer__menus {
    --gf-ftr-col-gap: clamp(24px, 8.33vw, 160px);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.gf-footer__heading {
    margin: 0 0 24px;
    font-family: var(--gf-font-alt);
    font-size: var(--gf-h4);
    font-weight: 600;
    line-height: 1.16;
    letter-spacing: -.02em;
    color: var(--gf-white);
}

.gf-footer__cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 157px));
    gap: 0 var(--gf-ftr-col-gap);
    align-items: start;
}

.gf-footer__section--services .gf-footer__cols {
    grid-template-columns: minmax(0, 177px) minmax(0, 157px) minmax(0, 187px);
}

.gf-footer__menu {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gf-footer__menu li {
    width: max-content;
    max-width: 100%;
    font-family: var(--gf-font-body);
    font-size: var(--gf-body);
    font-weight: 400;
    line-height: var(--gf-body-lh);
    letter-spacing: -.02em;
    color: #e2e2e2;
}

/* Services column 1 text boxes are 200px in the design; other sections never wrap */
.gf-footer__section--services .gf-footer__col:first-child .gf-footer__menu li {
    max-width: 200px;
}

.gf-footer__section:not(.gf-footer__section--services) .gf-footer__menu li {
    max-width: none;
    white-space: nowrap;
}

.gf-footer__divider {
    display: block;
    width: 100%;
    height: 2px;
    margin-top: 40px;
}

/* ---------- Bottom bar ---------- */
.gf-footer__bottom {
    max-width: var(--gf-site-width);
    margin: 28px max(var(--gf-site-pad-r), (100% - var(--gf-site-width)) / 2) 0 max(var(--gf-site-pad-l), (100% - var(--gf-site-width)) / 2);
    padding: 34.5px 20px;
    background-color: #050135;
    border-radius: 14px;
    text-align: center;
}

.gf-footer__bottom p {
    margin: 0;
    font-family: var(--gf-font-body);
    font-size: var(--gf-body);
    font-weight: 400;
    line-height: var(--gf-body-lh);
    letter-spacing: -.02em;
    color: #e2e2e2;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .gf-footer__inner {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .gf-footer__menus {
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .gf-footer {
        padding: 40px 0 20px;
    }

    .gf-footer__card-body {
        gap: 26px;
        padding: 20px 20px 0;
    }


    .gf-footer__banner {
        margin-top: 36px;
        padding: 12px 20px;
    }

    .gf-footer__cols,
    .gf-footer__section--services .gf-footer__cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 16px;
    }

    .gf-footer__menu li,
    .gf-footer__section:not(.gf-footer__section--services) .gf-footer__menu li,
    .gf-footer__section--services .gf-footer__col:first-child .gf-footer__menu li {
        width: auto;
        max-width: 100%;
        white-space: normal;
    }

    .gf-footer__col:empty {
        display: none;
    }

    .gf-footer__divider {
        margin-top: 28px;
    }

    .gf-footer__bottom {
        margin-top: 40px;
        padding: 20px 16px;
        border-radius: 16px;
    }

}
