/* Small additions the static pages did not need: toasts, form errors,
   the sign-out button in the header, and the skip link. */

.skip-link {
    position: absolute;
    left: -9999px;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 999;
    background: #406bb8;
    color: #fff;
    padding: .6rem 1.2rem;
    border-radius: 999px;
}

.gj-toast {
    position: fixed;
    left: 50%;
    bottom: 2rem;
    transform: translate(-50%, 140%);
    background: #0f8b7f;
    color: #fff;
    padding: .85rem 1.5rem;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 600;
    box-shadow: 0 18px 40px -18px rgba(18, 32, 58, .55);
    z-index: 9999;
    transition: transform .35s cubic-bezier(.2, .7, .3, 1);
    max-width: min(90vw, 30rem);
    text-align: center;
}
.gj-toast.show {
    transform: translate(-50%, 0);
}

.form-error {
    background: #fff0ee;
    color: #a92415;
    border-radius: .8rem;
    padding: .7rem 1rem;
    font-size: .88rem;
    margin-bottom: 1rem;
}

.signout-form {
    display: inline;
    margin: 0;
}
.signout-link {
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
    opacity: .8;
    padding: 0;
}
.signout-link:hover {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .gj-toast { transition: none; }
}


/* ---------------------------------------------------------------------------
   Mobile header. The design fixes the logo at 72px and the bar at 104px with
   no mobile step-down, so on a phone the logo and CTA crowd each other out.
   Scoped to #hdr so it wins on specificity wherever this file loads.
   --------------------------------------------------------------------------- */

@media (max-width: 1000px) {
    #hdr .nav,
    #hdr.scrolled .nav {
        height: 74px;
        gap: .7rem;
    }

    #hdr .logo img,
    #hdr.scrolled .logo img {
        height: 46px;
    }

    #hdr .nav-right {
        gap: .55rem;
    }

    #hdr .nav-right .btn-coral {
        padding: .62rem 1.05rem;
        font-size: .84rem;
        box-shadow: 0 8px 18px -10px rgba(255, 90, 71, .75);
        white-space: nowrap;
    }

    /* Follow the bar instead of sitting at a hard-coded 104px, so the menu
       stays attached when the header shrinks on scroll. */
    #hdr .nav-links.open {
        top: 100%;
    }

    #hdr .burger {
        padding: 6px;
    }
}

@media (max-width: 520px) {
    #hdr .nav,
    #hdr.scrolled .nav {
        height: 66px;
    }

    #hdr .logo img,
    #hdr.scrolled .logo img {
        height: 38px;
    }

    #hdr .nav-right .btn-coral {
        padding: .55rem .9rem;
        font-size: .78rem;
    }
}

@media (max-width: 380px) {
    #hdr .logo img,
    #hdr.scrolled .logo img {
        height: 34px;
    }

    #hdr .nav-right .btn-coral {
        padding: .5rem .75rem;
        font-size: .72rem;
    }
}

/* ---------------------------------------------------------------------------
   Hero legibility. The body copy was #cfe0f4 over a diagonal wash that fades
   to 24% on the right, so the text sat on an almost unshaded photo. Rather
   than darken the whole image, the scrim is pushed to the text column only.
   --------------------------------------------------------------------------- */

section.hero::after {
    background:
        /* scrim behind the text column */
        linear-gradient(90deg,
            rgba(10, 18, 40, .84) 0%,
            rgba(10, 18, 40, .60) 40%,
            rgba(10, 18, 40, .12) 68%,
            rgba(10, 18, 40, 0) 84%),
        /* the original brand wash, eased back so the photo keeps its colour */
        linear-gradient(120deg,
            rgba(16, 26, 54, .58) 0%,
            rgba(47, 80, 147, .34) 46%,
            rgba(15, 158, 143, .18) 100%);
}

section.hero .sub {
    color: #fff;
    font-weight: 600;
    text-shadow: 0 1px 14px rgba(8, 15, 32, .45);
}

section.hero .hero-body {
    color: rgba(255, 255, 255, .93);
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.7;
    text-shadow: 0 1px 12px rgba(8, 15, 32, .4);
}

/* On phones the text runs full width, so the scrim has to come from the
   bottom instead of the left. */
@media (max-width: 760px) {
    section.hero::after {
        background:
            linear-gradient(180deg,
                rgba(10, 18, 40, .42) 0%,
                rgba(10, 18, 40, .72) 45%,
                rgba(10, 18, 40, .88) 100%),
            linear-gradient(120deg,
                rgba(16, 26, 54, .5) 0%,
                rgba(47, 80, 147, .3) 100%);
    }

    section.hero .hero-body {
        font-size: 1rem;
    }
}

/* ---------------------------------------------------------------------------
   Chamber of Commerce membership badge, footer.

   The badge is a circular lock-up with its own navy fill, so it never fully
   disappears into the dark footer the way a flat logo would. Kept small and
   set apart from the social row so it reads as a credential rather than a
   fifth icon.
   --------------------------------------------------------------------------- */

.foot-badge {
    display: inline-block;
    /* Sits under the Information links rather than under the social row, where
       it was a fourth item in an already heavy first column. */
    margin-top: 1.8rem;
    line-height: 0;
    opacity: .88;
    transition: opacity .2s ease, transform .2s ease;
}

.foot-badge:hover,
.foot-badge:focus-visible {
    opacity: 1;
    transform: translateY(-2px);
}

.foot-badge img {
    width: 84px;
    height: auto;
    display: block;
}

@media (max-width: 760px) {
    .foot-badge {
        margin-top: 1.2rem;
    }

    .foot-badge img {
        width: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .foot-badge {
        transition: none;
    }

    .foot-badge:hover {
        transform: none;
    }
}
