/* Fixed, so the hero runs under it. The Elementor header carried z-index:1000 but
   was never actually fixed — the intent was there, the CSS was not. */
.scc-header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 50;
    background: var(--scc-bg);
    border-block-end: 1px solid var(--scc-line);
}

/* Out of flow, so the page has to reserve the space itself. On body, not on
   .scc-main: a template that renders no <main> would otherwise slide underneath. */
body { padding-block-start: var(--scc-header-h); }

.scc-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--scc-header-h);
    max-width: calc(var(--scc-container) + 2 * var(--scc-gutter));
    margin-inline: auto;
    padding-inline: var(--scc-gutter);
}

.scc-header__logo { display: inline-flex; align-items: center; text-decoration: none; }
.scc-header__logo img { width: 132px; height: auto; }

.scc-header__nav { display: flex; align-items: center; gap: 2rem; }

.scc-header__menu,
.scc-header__social {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* (0,2,1) to clear the kit's bare `a`, which would otherwise colour the nav
   accent-on-dark and underline it. */
.scc-header .scc-header__menu a {
    color: var(--scc-text-strong);
    font-size: 1.0625rem;
    font-weight: var(--scc-weight-bold);
    line-height: 1.25;
    text-decoration: none;
    padding-block: 0.5rem;
}

/* The kit's `a:hover{text-decoration:underline}` is also (0,2,1) and ties, so the
   hover state needs its own higher rule or the underline comes back. */
.scc-header .scc-header__menu a:hover,
.scc-header .scc-header__menu a:focus-visible {
    color: var(--scc-accent);
    text-decoration: none;
}

.scc-header .scc-header__social a {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--scc-line);
    border-radius: 50%;
    color: var(--scc-text-strong);
    font-size: 0.8125rem;
    font-weight: var(--scc-weight-bold);
    text-decoration: none;
}

.scc-header .scc-header__social a:hover,
.scc-header .scc-header__social a:focus-visible {
    background: var(--scc-accent);
    color: var(--scc-bg);
    text-decoration: none;
}

/* Hidden above the breakpoint. Must be (0,2,0): hello-elementor's reset declares
   `[type=button],button { display:inline-block }`, and the [type=button] half is
   (0,1,0) — a tie with one class, which the reset wins on load order. This button
   carries type="button", so a single-class rule leaves it visible on desktop. */
.scc-header .scc-header__toggle {
    display: none;
    /* Square, so the hover fill reads as a square rather than a pill. */
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
}

.scc-header .scc-header__toggle:hover,
.scc-header .scc-header__toggle:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border: none;
}

.scc-header__bars,
.scc-header__bars::before,
.scc-header__bars::after {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--scc-text-strong);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.scc-header__bars::before,
.scc-header__bars::after { content: ""; position: relative; }
.scc-header__bars::before { top: -8px; }
.scc-header__bars::after  { top: 6px; }

/* Open: the bars become an X, so the control reads as "close". */
.scc-header__toggle[aria-expanded="true"] .scc-header__bars { background: transparent; }
.scc-header__toggle[aria-expanded="true"] .scc-header__bars::before { top: 2px; transform: rotate(45deg); }
.scc-header__toggle[aria-expanded="true"] .scc-header__bars::after  { top: 0;   transform: rotate(-45deg); }

@media (max-width: 1023px) {
    .scc-header .scc-header__toggle { display: flex; }

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

    /* Collapsed with `display`, not height, so the links leave the tab order
       without having to manage tabindex.
       flex-basis pays for its own bleed: it resolves against the container's
       CONTENT box, so a bare 100% plus the negative margins stops short of the
       right edge by twice the gutter. */
    .scc-header__nav {
        display: none;
        flex-basis: calc(100% + 2 * var(--scc-gutter));
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin-inline: calc(var(--scc-gutter) * -1);
        padding: 0.5rem var(--scc-gutter) 1.5rem;
        background: var(--scc-bg);
        border-block-start: 1px solid var(--scc-line);
    }

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

    .scc-header__menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .scc-header .scc-header__menu a { display: block; width: 100%; padding-block: 0.85rem; }

    .scc-header__social { padding-block-start: 1rem; }
}

.scc-footer {
    background: var(--scc-bg-deep);
    border-block-start: 1px solid var(--scc-line);
    padding-block: var(--scc-section-y);
    color: var(--scc-text);
}

.scc-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: calc(var(--scc-container) + 2 * var(--scc-gutter));
    margin-inline: auto;
    padding-inline: var(--scc-gutter);
}

.scc-footer__logo img { width: 160px; height: auto; }

.scc-footer__nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.scc-footer .scc-footer__nav a {
    color: var(--scc-text);
    font-size: var(--scc-text-small);
    text-decoration: none;
}
.scc-footer .scc-footer__nav a:hover,
.scc-footer .scc-footer__nav a:focus-visible { color: var(--scc-accent); text-decoration: underline; }

.scc-footer .scc-footer__copyright {
    margin: 1.75rem 0 0;
    text-align: center;
    color: var(--scc-text-muted);
    font-size: var(--scc-text-small);
}

@media (max-width: 767px) {
    .scc-footer__inner { flex-direction: column; text-align: center; }
    .scc-footer__nav ul { justify-content: center; }
}
