.gia-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.gia-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1rem;
    padding-inline: var(--space-header-footer-x);
}

.gia-header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gia-header__nav {
    display: flex;
    gap: 2rem;
}

/* (0,2,1): Elementor's Global Kit colors bare `a` at (0,1,1), which would otherwise
   tie this rule and win on source order, rendering nav links dark red on near-black. */
.gia-header .gia-header__nav a {
    color: var(--color-light);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
}

/* The kit's `a:hover{text-decoration:underline}` is also (0,2,1), so it tied the
   rule above and won on load order — the hover state needs its own higher rule. */
.gia-header .gia-header__nav a:hover,
.gia-header .gia-header__nav a:focus {
    color: var(--color-light);
    text-decoration: none;
}

.gia-footer {
    background: var(--color-black);
    color: var(--color-light);
    padding-block: clamp(2rem, 1.4rem + 2.5vw, 3.75rem);
    padding-inline: var(--space-header-footer-x);
    text-align: center;
}

.gia-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.75rem, 0.5rem + 1vw, 2rem);
    margin-block-end: 1.5rem;
    font-size: var(--text-small);
}

/* Footer links had no color rule at all, so Elementor's bare `a` rule applied
   directly and beat the inherited light color from .gia-footer. */
.gia-footer .gia-footer__links a {
    color: var(--color-light);
    text-decoration: none;
}

.gia-footer .gia-footer__links a:hover {
    text-decoration: underline;
}

.gia-footer__copyright {
    font-size: var(--text-small);
    opacity: 0.8;
}

/* Hidden above the nav's breakpoint, where the links are always visible and the
   button would be redundant.
   Must be (0,2,0), not a single class: hello-elementor's reset declares
   `[type=button],[type=submit],button { display: inline-block }`, and the
   `[type=button]` half of that is (0,1,0) — a tie with one class, which the reset
   then wins on load order because it is enqueued later. This button carries
   type="button", so it matched and stayed visible on desktop. */
.gia-header .gia-header__toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    line-height: 0;
}

.gia-header__toggle-bars,
.gia-header__toggle-bars::before,
.gia-header__toggle-bars::after {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-light);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.gia-header__toggle-bars::before,
.gia-header__toggle-bars::after {
    content: "";
    position: relative;
}

.gia-header__toggle-bars::before {
    top: -8px;
}

.gia-header__toggle-bars::after {
    top: 6px;
}

/* Open state: the bars morph into an X so the control reads as a close button. */
.gia-header__toggle[aria-expanded="true"] .gia-header__toggle-bars {
    background: transparent;
}

.gia-header__toggle[aria-expanded="true"] .gia-header__toggle-bars::before {
    top: 2px;
    transform: rotate(45deg);
}

.gia-header__toggle[aria-expanded="true"] .gia-header__toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
}

@media (max-width: 640px) {
    .gia-header .gia-header__toggle {
        display: block;
    }

    .gia-header__inner {
        flex-wrap: wrap;
    }

    /* Collapsed by default; the toggle adds the modifier to reveal it. Uses
       display rather than height so the links are removed from the tab order
       while hidden, without needing to manage tabindex. */
    .gia-header__nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        gap: 0;
        padding-block: 0.5rem;
    }

    .gia-header__nav--open {
        display: flex;
    }

    .gia-header .gia-header__nav a {
        padding-block: 0.75rem;
    }
}
