/* =============================================================================
 * ALL STEEL - HEADER UPGRADE
 * -----------------------------------------------------------------------------
 * Design intent:
 *   - Brushed dark aluminium / steel industry feel.
 *   - Logo locked to the left of the header.
 *   - Company heading is absolutely positioned so it centres across the FULL
 *     header width, not just the right grid column. This corrects the visual
 *     off-centre impression caused by the logo column consuming left space.
 *   - Navigation buttons use steel-rivet dots on BOTH sides of the text.
 *   - Navigation text gets an orange underline on hover/active.
 *   - Email and phone sit below the navigation as clean action buttons.
 *   - Hamburger menu takes over before the navigation becomes cramped.
 *
 * Important implementation notes:
 *   - The left and right rivet dots use .main-nav a::before and ::after.
 *   - The orange underline uses CSS text-decoration instead of ::after so the
 *     right-hand rivet is not overwritten.
 *   - The hamburger menu expects your existing JavaScript to toggle .active on:
 *       1) .menu-toggle
 *       2) .main-nav
 *   - At the 1320px hamburger breakpoint, .company-heading returns to normal
 *     grid flow so the heading/menu grid areas function correctly.
 * ============================================================================= */

.site-header 
{
    position: sticky;
    top: 0;
    z-index: 2000;
    width: 100%;
    padding: 0;
    overflow: visible;
    isolation: isolate;

    /* Brushed dark aluminium base: layered gradients create the grain. */
    background:
        linear-gradient(115deg, rgba(255,255,255,0.060), transparent 18%, rgba(255,255,255,0.030) 34%, transparent 52%, rgba(255,255,255,0.045) 72%, transparent),
        repeating-linear-gradient(100deg, rgba(255,255,255,0.032) 0 1px, rgba(0,0,0,0.095) 1px 3px),
        linear-gradient(180deg, #20262b 0%, #12171b 52%, #080b0e 100%);

    border-bottom: 1px solid rgba(255,255,255,0.08);

    box-shadow:
        0 2px 0 rgba(255,255,255,0.08) inset,
        0 -1px 0 rgba(0,0,0,0.75) inset,
        0 14px 35px rgba(0,0,0,0.32);
}

/* Decorative sheen only. Keeps the steel feel without adding image assets. */
.header-metal-sheen
{
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.58;
    background:
        radial-gradient(circle at 10% 0%, rgba(210,220,225,0.18), transparent 34%),
        radial-gradient(circle at 88% 100%, rgba(0,71,171,0.22), transparent 38%);
}

/* -----------------------------------------------------------------------------
 * Main header layout
 * -----------------------------------------------------------------------------
 * Logo sits in the first column. Everything else stacks vertically in the second
 * column: navigation and contact actions. The company heading is lifted out of
 * this column and absolutely positioned so it spans the full container width.
 *
 * position: relative is required here as the anchor for .company-heading.
 * -------------------------------------------------------------------------- */
.header-container 
{
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(18px, 2.2vw, 34px);
    max-width: min(1540px, 100%);
    margin: 0 auto;
    width: 100%;
    min-height: 112px;
    padding: 12px clamp(16px, 2.4vw, 34px);
    position: relative;
}

/* -----------------------------------------------------------------------------
 * Left logo block
 * -------------------------------------------------------------------------- */
.logo 
{
    display: flex;
    align-items: center;
    min-width: 0;
}

.logo a 
{
    display: flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
    color: var(--text-light);
}

.logo-mark
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 6px;
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.025)),
        linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.35));
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow:
        0 10px 28px rgba(0,0,0,0.42),
        0 0 0 1px rgba(0,0,0,0.35) inset;
}

.logo img 
{
    display: block;
    height: 125px;
    width: auto;
    max-width: 100%;
    border-radius: 14px;
}

/* -----------------------------------------------------------------------------
 * Right-side stacked content
 * -----------------------------------------------------------------------------
 * padding-top compensates for .company-heading being pulled out of normal flow.
 * Without it the nav and CTA buttons would float up into the heading's space.
 * The heading itself is approximately 54px tall; 58px gives a small breathing gap.
 * -------------------------------------------------------------------------- */
.header-content
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-width: 0;
    padding-top: 58px;
}

/* -----------------------------------------------------------------------------
 * Company heading
 * -----------------------------------------------------------------------------
 * Absolutely positioned relative to .header-container so it spans the full
 * header width and appears centred across BOTH the logo column and content
 * column - correcting the visual off-centre caused by the logo column.
 *
 * pointer-events: none on the block prevents it blocking clicks on the logo
 * behind it. pointer-events: auto on the link restores link clickability.
 * -------------------------------------------------------------------------- */
.company-heading
{
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 0;
    text-align: center;
    pointer-events: none;
    z-index: 1;
}

.company-heading-link
{
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    min-width: 0;
    pointer-events: auto;
}

.company-title
{
    display: block;
    font-size: clamp(1.75rem, 2.5vw, 2.75rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.015em;
    color: #f7f9fa;
    text-shadow:
        0 1px 0 rgba(0,0,0,0.75),
        0 0 18px rgba(255,255,255,0.05);
}

/* -----------------------------------------------------------------------------
 * Navigation row
 * -----------------------------------------------------------------------------
 * On desktop this row centres the nav. At the hamburger breakpoint this same
 * row becomes the holder for the hamburger button, while the nav becomes an
 * absolute dropdown below the header.
 * -------------------------------------------------------------------------- */
.header-navigation-row
{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
}

/* -----------------------------------------------------------------------------
 * Navigation container
 * -------------------------------------------------------------------------- */
.main-nav
{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.main-nav ul
{
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: clamp(7px, 0.62vw, 12px);
    flex-wrap: nowrap;
    white-space: nowrap;
}

.main-nav li 
{
    flex-shrink: 1;
    position: relative;
}

/* -----------------------------------------------------------------------------
 * Steel navigation buttons
 * -----------------------------------------------------------------------------
 * Key notes:
 *   - gap creates clean spacing between the left dot, label and right dot.
 *   - ::before is the left rivet.
 *   - ::after is the right rivet.
 *   - text-decoration handles the orange underline so pseudo-elements remain
 *     available for the rivets.
 * -------------------------------------------------------------------------- */
.main-nav a 
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 39px;
    padding: 9px clamp(12px, 0.82vw, 16px);
    position: relative;
    overflow: hidden;
    color: rgba(245,247,248,0.90);
    text-decoration-line: none;
    text-decoration-color: #f28c28;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    font-size: clamp(0.68rem, 0.72vw, 0.80rem);
    font-weight: 900;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.018)),
        linear-gradient(90deg, rgba(255,255,255,0.04), rgba(0,0,0,0.14));
    box-shadow:
        0 1px 0 rgba(255,255,255,0.13) inset,
        0 -1px 0 rgba(0,0,0,0.45) inset,
        0 10px 22px rgba(0,0,0,0.18);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease,
        text-decoration-color 0.25s ease;
}

/* -----------------------------------------------------------------------------
 * Left and right steel rivets
 * -----------------------------------------------------------------------------
 * Do not use ::after for the underline. That was the reason the right-hand dot
 * disappeared. Both pseudo-elements are reserved for the rivets only.
 * -------------------------------------------------------------------------- */
.main-nav a::before,
.main-nav a::after
{
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(145deg, #d8dde0, #69737a 55%, #262c31);
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.40),
        0 0 10px rgba(255,255,255,0.08);
    opacity: 0.78;
}

/* Optional support for header.php versions that wrap labels in .nav-label. */
.main-nav .nav-label
{
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* Hover / active state: orange text and orange underline under the text area. */
.main-nav a:hover,
.main-nav a.active 
{
    color: var(--accent-color);
    border-color: var(--accent-color);
    text-decoration-line: underline;
    text-decoration-color: #f28c28;
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.22) inset,
        0 14px 28px rgba(0,0,0,0.32),
        0 0 20px rgba(0,71,171,0.18);
}

/* -----------------------------------------------------------------------------
 * CTA buttons row
 * -------------------------------------------------------------------------- */
.header-actions
{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
    margin-top: 12px;
    flex-shrink: 0;
}

.btn-outline 
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 37px;
    padding: 8px 15px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.80rem;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    color: #f6f8f9;
    border: 1px solid rgba(255,255,255,0.18);
    background:
        linear-gradient(180deg, rgba(0,71,171,0.84), rgba(0,45,110,0.92)),
        linear-gradient(135deg, rgba(255,255,255,0.16), transparent);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.20) inset,
        0 10px 24px rgba(0,0,0,0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-outline:hover 
{
    color: #ffffff;
    transform: translateY(-2px);
    border-color: rgba(200, 200, 200, 1);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.25) inset,
        0 14px 30px rgba(0,0,0,0.34),
        0 0 24px rgba(0,71,171,0.24);
}

.phone-cta i,
.phone-cta .fa,
.email-cta i,
.email-cta .fa
{
    margin-right: 0;
}

/* -----------------------------------------------------------------------------
 * Breadcrumbs
 * -----------------------------------------------------------------------------
 * Design intent:
 *   - Acts as a soft continuation of the dark steel header, fading into the
 *     page content below rather than sitting as a separate block.
 *   - Text is intentionally muted - breadcrumbs are orientation, not content.
 *   - The separator uses a chevron character for a cleaner, modern look.
 *   - Active link (current page) is dimmed further to distinguish from links.
 * -------------------------------------------------------------------------- */
.breadcrumbs
{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    width: 100%;
    padding: 7px clamp(16px, 2.4vw, 34px);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(228, 240, 252, 0.7);

    /* Fades from the header's dark steel base down to transparent so the
     * page background shows through cleanly at the bottom edge. */
    background:
        linear-gradient(180deg,
            rgba(8,11,14,0.82) 0%,
            rgba(12,16,20,0.55) 75%,
            rgba(12,16,20,0.55) 100%);

    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.breadcrumbs a
{
    color: rgba(160,175,190,0.80);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover
{
    color: #f28c28;
    text-decoration: none;
}

/* Current page label - slightly dimmer, not a link. */
.breadcrumb-current
{
    color: rgba(200,210,220,0.55);
}

/* Home icon link keeps the same hover treatment. */
.breadcrumb-home
{
    color: rgba(201, 224, 247, 0.8);
}

.breadcrumb-separator
{
    margin: 0 7px;
    color: rgba(150,160,170,0.40);
    font-size: 0.70rem;
    user-select: none;
}

/* -----------------------------------------------------------------------------
 * Hamburger button
 * -----------------------------------------------------------------------------
 * Hidden on full desktop. Shown at the 1320px breakpoint below.
 * JavaScript toggles .active on click.
 * -------------------------------------------------------------------------- */
.menu-toggle 
{
    display: none;
    width: 46px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
    box-shadow: 0 8px 20px rgba(0,0,0,0.22);
    cursor: pointer;
}

.menu-toggle span 
{
    display: block;
    width: 24px;
    height: 3px;
    margin: 0;
    border-radius: 999px;
    background-color: var(--text-light);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) 
{
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) 
{
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) 
{
    transform: rotate(-45deg) translate(5px, -6px);
}

.header-banner 
{
    color: #ffffff;
    text-align: center;
    padding: 6px 6px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(255,255,255,0.18);
    border-bottom: 1px solid rgba(0,0,0,0.35);

    background:
        linear-gradient(115deg, rgba(255,255,255,0.07), transparent 40%, rgba(255,255,255,0.03)),
        repeating-linear-gradient(100deg, rgba(255,255,255,0.032) 0 1px, rgba(0,0,0,0.10) 1px 3px),
        linear-gradient(180deg, #1a4fa8 0%, #0d2d6b 52%, #071840 100%);

    box-shadow:
        0 1px 0 rgba(255,255,255,0.18) inset,
        0 -1px 0 rgba(0,0,0,0.55) inset,
        0 10px 24px rgba(0,0,0,0.30);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease;
}

/* -----------------------------------------------------------------------------
 * Hamburger breakpoint - 1320px
 * -----------------------------------------------------------------------------
 * At this width the full nav is replaced by a hamburger dropdown. The layout
 * changes significantly:
 *   - .header-content switches from flex-column to a named CSS grid so the
 *     heading and hamburger button sit side by side on row 1, with the CTA
 *     actions spanning full width on row 2.
 *   - .company-heading MUST return to normal grid flow here (position: static)
 *     so it occupies the "heading" grid area correctly. The absolute positioning
 *     used on desktop would remove it from flow and collapse that grid area.
 *   - .header-content padding-top is cleared because the grid areas manage
 *     spacing automatically and no compensation is needed.
 *   - .main-nav becomes an absolute dropdown below the header on toggle.
 * -------------------------------------------------------------------------- */
@media (max-width: 1320px) 
{
    .header-container
    {
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 16px;
        min-height: 96px;
    }

    /* Reset the desktop padding-top compensation - grid takes over spacing. */
    .header-content
    {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "heading menu"
            "actions actions";
        align-items: center;
        column-gap: 12px;
        width: 100%;
        padding-top: 0;
    }

    /* Return heading to normal grid flow so the "heading" area is populated. */
    .company-heading
    {
        position: static;
        pointer-events: auto;
        grid-area: heading;
        margin-bottom: 0;
        justify-content: center;
    }

    .header-navigation-row
    {
        grid-area: menu;
        width: auto;
        justify-content: flex-end;
        align-items: center;
        min-width: 46px;
    }

    .logo img 
    {
        height: 100px;
        width: auto;;
    }

    .menu-toggle
    {
        display: inline-flex;
    }

    .main-nav 
    {
        display: none;
        position: absolute;
        top: calc(100% - 1px);
        left: clamp(12px, 2vw, 28px);
        right: clamp(12px, 2vw, 28px);
        width: auto;
        padding: 12px;
        border-radius: 0 0 22px 22px;
        border: 1px solid rgba(255,255,255,0.12);
        border-top: 0;
        background:
            repeating-linear-gradient(100deg, rgba(255,255,255,0.032) 0 1px, rgba(0,0,0,0.08) 1px 3px),
            linear-gradient(180deg, #171c20 0%, #0b0e11 100%);
        box-shadow: 0 18px 40px rgba(0,0,0,0.45);
        z-index: 2100;
    }

    .main-nav.active 
    {
        display: block;
    }

    .main-nav ul 
    {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 9px;
        width: 100%;
        white-space: normal;
    }

    .main-nav a 
    {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 13px 14px;
        border-radius: 14px;
        font-size: 0.76rem;
    }

    .header-actions
    {
        grid-area: actions;
        justify-content: center;
        margin-top: 9px;
    }
}

@media (max-width: 860px) 
{
    .header-container
    {
        grid-template-columns: auto minmax(0, 1fr);
        min-height: 82px;
        column-gap: 12px;
        padding: 9px 14px;
    }

    .logo img 
    {
        height: 58px;
    }

    .company-title
    {
        font-size: 1.08rem;
    }

    .main-nav ul
    {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) 
{
    .header-container
    {
        align-items: start;
        min-height: auto;
    }

    .header-content
    {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "heading menu"
            "actions actions";
        row-gap: 8px;
    }

    .company-title
    {
        white-space: normal;
    }

    .header-actions 
    {
        justify-content: stretch;
        width: 100%;
        gap: 8px;
        margin-top: 0;
    }

    .btn-outline 
    {
        flex: 1 1 0;
        min-height: 38px;
        padding: 8px 10px;
        font-size: 0.74rem;
    }

    .main-nav
    {
        left: 10px;
        right: 10px;
    }

    .main-nav ul
    {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) 
{
    .header-container
    {
        column-gap: 9px;
        padding: 8px 10px;
    }

    .logo img 
    {
        height: 50px;
    }

    .company-title
    {
        font-size: 0.98rem;
    }

    .phone-cta span,
    .email-cta span
    {
        font-size: 0.70rem;
    }
}

[itemscope] [itemprop][content],
[itemscope] meta[itemprop],
[itemscope] link[itemprop] 
{
    display: none;
}