@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* ============================================================
   RUI AERO LTD - NAVBAR + FOOTER STYLES
   File: css/navbar_footer.css

   Purpose:
   Global reset, shared header, responsive navigation,
   hamburger menu construction, content shell and footer.

   Notes:
   - This file is based on the responsive checkbox/hamburger
     approach from your supplied navbar_footer reference files.
   - Page-specific layout belongs in css/home.css and css/rfq.css.
============================================================ */

/* =========================
   GLOBAL RESET + VARIABLES
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --rui-navy: #071b3d;
    --rui-navy-deep: #061836;
    --rui-blue: #4d88d4;
    --rui-blue-dark: #3475c8;
    --rui-sky: #1b8de0;
    --rui-grey: #9aa4ad;
    --rui-white: #ffffff;
    --rui-off-white: #f6f8fb;
    --rui-black: #111111;
    --rui-border: rgba(255, 255, 255, 0.24);
    --rui-header-metal: linear-gradient(180deg, #f4f6f8 0%, #d9dee3 52%, #c4cbd2 100%);

    --font-main: "Inter", Arial, Helvetica, sans-serif;

    --shadow-soft: 0 18px 45px rgba(7, 27, 61, 0.18);
    --shadow-card: 0 18px 45px rgba(7, 27, 61, 0.12);
    --max-site-width: 1180px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--rui-white);
    background: var(--rui-blue);
    font-family: var(--font-main);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* =========================
   TOP STRIP
========================= */
.top-strip {
    width: 100%;
    padding: 0.45rem 1rem;
    background: var(--rui-navy);
    color: var(--rui-white);
    text-align: center;
    font-weight: 700;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
}

/* =========================
   HEADER / NAVBAR
========================= */
.site-header {
    position: relative;
    z-index: 1000;
    background: var(--rui-header-metal);
    color: var(--rui-black);
    border-bottom: 3px solid rgba(11, 31, 58, 0.65);
}

.nav-container {
    position: relative;
    width: 100%;
    min-height: 138px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1.5rem;
    background: var(--rui-header-metal);
}

.logo-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
}

.nav-logo img {
    width: 145px;
    height: auto;
}

.nav-btn {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
}

.nav-links > ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(1.2rem, 3vw, 2.2rem);
}

.nav-link {
    position: relative;
}

.nav-link > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0;
    color: var(--rui-black);
    font-size: 1rem;
    transition: color 0.25s ease;
}

.nav-link > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0.15rem;
    width: 0;
    height: 2px;
    background: var(--rui-black);
    transition: width 0.25s ease;
}

.nav-link > a:hover::after,
.nav-link > a.active::after {
    width: 100%;
}

.nav-link > a:hover,
.nav-link > a.active {
    color: var(--rui-navy);
}

/* =========================
   SOCIAL LINKS
========================= */
.nav-social {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.social-link {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--rui-black);
    font-size: 0.85rem;
    font-weight: 800;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    background: var(--rui-navy);
    color: var(--rui-white);
}

.linkedin-link span {
    font-size: 1.25rem;
    line-height: 1;
}

.whatsapp-link span {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

/* =========================
   HAMBURGER MENU
   The checkbox #check is visually hidden until mobile sizes.
========================= */
.hamburger-menu-container {
    display: none;
    align-items: center;
    justify-content: flex-end;
}

.hamburger-menu {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hamburger-menu div {
    position: relative;
    width: 1.7rem;
    height: 3px;
    border-radius: 999px;
    background: var(--rui-navy);
    transition: 0.35s ease;
}

.hamburger-menu div::before,
.hamburger-menu div::after {
    content: "";
    position: absolute;
    width: inherit;
    height: inherit;
    border-radius: inherit;
    background: var(--rui-navy);
    transition: 0.35s ease;
}

.hamburger-menu div::before {
    transform: translateY(-8px);
}

.hamburger-menu div::after {
    transform: translateY(8px);
}

#check {
    position: absolute;
    top: 50%;
    right: 1.4rem;
    width: 2.75rem;
    height: 2.75rem;
    opacity: 0;
    display: none;
    cursor: pointer;
    transform: translateY(-50%);
    z-index: 90000;
}

#check:checked ~ .hamburger-menu-container .hamburger-menu div {
    background: transparent;
}

#check:checked ~ .hamburger-menu-container .hamburger-menu div::before {
    transform: translateY(0) rotate(-45deg);
}

#check:checked ~ .hamburger-menu-container .hamburger-menu div::after {
    transform: translateY(0) rotate(45deg);
}

@keyframes mobileMenuItemReveal {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   PAGE SHELL
========================= */
.page-main {
    flex: 1;
}

.content-shell {
    width: 100%;
}

/* =========================
   FOOTER
========================= */
.site-footer {
    background: var(--rui-navy);
    color: var(--rui-white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.3rem 1.7rem 2rem;
}

.footer-brand {
    flex: 1.2;
}

.footer-logo img {
    width: 96px;
    height: auto;
    margin-bottom: 0.85rem;
    background: var(--rui-white);
}

.footer-brand p {
    font-size: 0.92rem;
}

.footer-contact-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-contact-block h2 {
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.footer-contact-block p {
    margin-bottom: 0.45rem;
    font-size: 0.95rem;
}

.footer-contact-block a:hover {
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.7rem 1rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
}


/* Transparent logo polish
   The header logo now uses a PNG with the white background removed,
   so the aluminium header shade shows through cleanly. */
.nav-logo img {
    object-fit: contain;
    mix-blend-mode: normal;
}

/* =========================
   RESPONSIVE NAVIGATION
========================= */
@media (max-width: 900px) {
    .nav-container {
        min-height: 96px;
        padding: 0 1rem;
    }

    .nav-logo img {
        width: 120px;
    }

    .hamburger-menu-container {
        display: flex;
        margin-left: auto;
    }

    #check {
        display: block;
    }

    .nav-btn {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 96px);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(7, 27, 61, 0.98);
        color: var(--rui-white);
        transform: translateX(100%);
        transition: transform 0.38s ease;
        z-index: 999;
    }

    #check:checked ~ .nav-btn {
        transform: translateX(0);
    }

    .nav-links > ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-link {
        opacity: 0;
        transform: translateY(14px);
    }

    #check:checked ~ .nav-btn .nav-link,
    #check:checked ~ .nav-btn .nav-social {
        animation: mobileMenuItemReveal 0.45s ease forwards var(--i);
    }

    .nav-link > a {
        display: flex;
        width: 100%;
        padding: 1rem 1.25rem;
        color: var(--rui-white);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .nav-link > a::after {
        display: none;
    }

    .nav-link > a:hover,
    .nav-link > a.active {
        background: rgba(255, 255, 255, 0.1);
        color: var(--rui-white);
    }

    .nav-social {
        padding: 1rem 1.25rem 1.25rem;
        opacity: 0;
        transform: translateY(14px);
    }

    .social-link {
        color: var(--rui-white);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-contact-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
}

@media (max-width: 560px) {
    .top-strip {
        font-size: 0.78rem;
    }

    .nav-container {
        min-height: 86px;
    }

    .nav-logo img {
        width: 98px;
    }

    .footer-content {
        padding: 1.7rem 1.2rem;
    }

    .footer-bottom {
        padding-inline: 1.2rem;
    }
}


/* ============================================================
   PHASE 1 PATCH - BOOTSTRAP ICON SUPPORT
   Uses Bootstrap Icons classes added in the HTML head.
============================================================ */
.social-link i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
}

.footer-icon-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.footer-icon-link i {
    font-size: 0.95rem;
    line-height: 1;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 0.85rem;
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.footer-social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transform: translateY(-2px);
}

.footer-social-links i {
    font-size: 1rem;
}


/* ============================================================
   PROFESSIONAL POLISH PATCH - HEADER / FOOTER REFINEMENTS
============================================================ */
.top-strip {
    letter-spacing: 0.02em;
}

.site-header {
    box-shadow: 0 10px 26px rgba(7, 27, 61, 0.08);
}

.nav-container {
    min-height: 118px;
    max-width: 1380px;
    margin: 0 auto;
}

.nav-logo img {
    width: 132px;
}

.nav-link > a {
    font-weight: 500;
}

.nav-link > a::after {
    background: var(--rui-blue-dark);
}

.nav-rfq-button {
    padding: 0.62rem 1rem !important;
    border-radius: 999px;
    background: var(--rui-navy);
    color: var(--rui-white) !important;
    font-weight: 800 !important;
}

.nav-rfq-button::after {
    display: none;
}

.nav-rfq-button:hover,
.nav-rfq-button.active {
    background: var(--rui-blue-dark);
    color: var(--rui-white) !important;
}

.social-link {
    border: 1px solid rgba(7, 27, 61, 0.12);
    background: rgba(7, 27, 61, 0.03);
}

.site-footer {
    background:
        radial-gradient(circle at 78% 12%, rgba(77, 136, 212, 0.2), transparent 20rem),
        var(--rui-navy);
}

.footer-content {
    grid-template-columns: 1.2fr 0.75fr 1.15fr;
    display: grid;
    align-items: start;
}

.footer-logo img {
    padding: 0.25rem;
    border-radius: 6px;
}

.footer-brand p {
    max-width: 390px;
    color: rgba(255, 255, 255, 0.82);
}

.footer-links-block h2,
.footer-contact-block h2 {
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.98);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.footer-quick-links {
    display: grid;
    gap: 0.45rem;
}

.footer-quick-links a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.94rem;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-quick-links a:hover {
    color: var(--rui-white);
    transform: translateX(3px);
}

.footer-contact-grid {
    grid-template-columns: repeat(2, minmax(145px, 1fr));
}

.footer-contact-block p {
    color: rgba(255, 255, 255, 0.82);
}

.footer-icon-link:hover {
    color: var(--rui-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
}

@media (max-width: 900px) {
    .nav-container {
        min-height: 92px;
    }

    .nav-logo img {
        width: 108px;
    }

    .nav-rfq-button {
        width: calc(100% - 2.5rem);
        margin: 0.8rem 1.25rem;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .nav-container {
        min-height: 82px;
    }

    .nav-logo img {
        width: 92px;
    }

    .footer-contact-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   METALLIC ALUMINIUM UI POLISH PATCH
   Purpose:
   Adds a more aerospace/engineering colour system with aluminium,
   brushed steel and graphite tones while retaining RUI Aero navy.
============================================================ */
:root {
    --rui-navy: #0B1F3A;
    --rui-navy-deep: #07172C;
    --rui-blue: #2F6FAB;
    --rui-blue-dark: #245B91;
    --rui-sky: #3D8DFF;

    --rui-aluminium-light: #E6E8EA;
    --rui-aluminium: #C7CCD1;
    --rui-steel: #AEB6BF;
    --rui-graphite: #2F3A42;
    --rui-charcoal: #17232B;
    --rui-silver-glint: rgba(255, 255, 255, 0.55);

    --rui-grey: #AEB6BF;
    --rui-off-white: #F4F6F8;
    --rui-border: rgba(174, 182, 191, 0.38);

    --shadow-soft: 0 20px 48px rgba(11, 31, 58, 0.18);
    --shadow-card: 0 18px 42px rgba(23, 35, 43, 0.12);
}

body {
    background:
        radial-gradient(circle at 12% 10%, rgba(230, 232, 234, 0.35), transparent 18rem),
        linear-gradient(180deg, #E6E8EA 0%, #C7CCD1 42%, #AEB6BF 100%);
}

.top-strip {
    background: linear-gradient(90deg, var(--rui-navy-deep), var(--rui-navy), var(--rui-graphite));
    border-bottom: 1px solid rgba(230, 232, 234, 0.35);
}

.site-header {
    background: linear-gradient(180deg, #ffffff 0%, var(--rui-aluminium-light) 100%);
    border-bottom: 3px solid var(--rui-aluminium);
    box-shadow: 0 12px 34px rgba(11, 31, 58, 0.14);
}

.nav-container {
    background: transparent;
}

.nav-link > a {
    color: var(--rui-charcoal);
}

.nav-link > a:hover,
.nav-link > a.active {
    color: var(--rui-navy);
}

.nav-link > a::after {
    background: linear-gradient(90deg, var(--rui-steel), var(--rui-blue-dark));
}

.nav-rfq-button {
    background: linear-gradient(135deg, var(--rui-navy) 0%, var(--rui-graphite) 100%);
    border: 1px solid rgba(47, 58, 66, 0.35);
    box-shadow: inset 0 1px 0 var(--rui-silver-glint), 0 10px 24px rgba(11, 31, 58, 0.18);
}

.nav-rfq-button:hover,
.nav-rfq-button.active {
    background: linear-gradient(135deg, var(--rui-graphite) 0%, var(--rui-blue-dark) 100%);
}

.social-link {
    color: var(--rui-navy);
    border-color: rgba(47, 58, 66, 0.2);
    background: linear-gradient(145deg, #ffffff 0%, var(--rui-aluminium-light) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 8px 18px rgba(11,31,58,0.08);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--rui-navy), var(--rui-graphite));
    color: var(--rui-white);
}

.site-footer {
    background:
        radial-gradient(circle at 82% 12%, rgba(199, 204, 209, 0.17), transparent 22rem),
        linear-gradient(135deg, var(--rui-navy-deep) 0%, var(--rui-navy) 52%, var(--rui-charcoal) 100%);
    border-top: 4px solid var(--rui-aluminium);
}

.footer-logo img {
    background: linear-gradient(145deg, #ffffff 0%, var(--rui-aluminium-light) 100%);
    border: 1px solid rgba(199, 204, 209, 0.85);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.footer-social-links a,
.footer-icon-link {
    color: rgba(255,255,255,0.88);
}

.footer-social-links a {
    border-color: rgba(199, 204, 209, 0.34);
    background: rgba(230, 232, 234, 0.06);
}

.footer-social-links a:hover {
    background: rgba(230, 232, 234, 0.14);
    border-color: rgba(230, 232, 234, 0.7);
}

.footer-bottom {
    border-top-color: rgba(199, 204, 209, 0.2);
}



/* ============================================================
   RESPONSIVE MENU FIX PATCH
   Purpose:
   Restores the mobile / hamburger menu after later polish patches
   accidentally overrode the mobile menu colours and layout.

   Main causes fixed:
   - Later desktop nav styles were overriding mobile nav link colours.
   - Mobile menu overlay needed a stronger final z-index and width rule.
   - Social/RFQ button styles needed explicit mobile states.
   - Horizontal overflow needed to be suppressed on small screens.
============================================================ */

html,
body {
    overflow-x: hidden;
}

.site-header {
    position: relative;
    z-index: 10000;
}

@media (max-width: 900px) {
    .nav-container {
        position: relative;
        min-height: 96px;
        padding: 0 1rem;
    }

    .nav-logo img {
        width: 120px;
    }

    .hamburger-menu-container {
        display: flex;
        margin-left: auto;
        position: relative;
        z-index: 10002;
    }

    .hamburger-menu {
        position: relative;
        z-index: 10003;
    }

    #check {
        display: block;
        position: absolute;
        top: 50%;
        right: 1rem;
        width: 2.75rem;
        height: 2.75rem;
        opacity: 0;
        cursor: pointer;
        transform: translateY(-50%);
        z-index: 10004;
    }

    .nav-btn {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 96px);
        overflow-y: auto;
        overflow-x: hidden;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 0;
        background: rgba(7, 27, 61, 0.98);
        color: var(--rui-white);
        transform: translateX(100%);
        transition: transform 0.38s ease;
        z-index: 10001;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    }

    #check:checked ~ .nav-btn {
        transform: translateX(0);
    }

    .nav-links,
    .nav-links > ul {
        width: 100%;
    }

    .nav-links > ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-link {
        width: 100%;
        opacity: 0;
        transform: translateY(14px);
    }

    #check:checked ~ .nav-btn .nav-link,
    #check:checked ~ .nav-btn .nav-social {
        animation: mobileMenuItemReveal 0.45s ease forwards var(--i);
    }

    .nav-link > a,
    .nav-link > a.active,
    .nav-link > a:hover {
        display: flex;
        width: 100%;
        min-height: 58px;
        align-items: center;
        justify-content: flex-start;
        padding: 1rem 1.35rem;
        color: var(--rui-white) !important;
        background: transparent;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        font-weight: 650;
    }

    .nav-link > a::after {
        display: none;
    }

    .nav-link > a:hover,
    .nav-link > a.active {
        background: rgba(255, 255, 255, 0.1);
    }

    .nav-rfq-button,
    .nav-rfq-button:hover,
    .nav-rfq-button.active {
        justify-content: center !important;
        margin: 1rem 1.25rem;
        min-height: 54px;
        width: calc(100% - 2.5rem);
        border: 1px solid rgba(230, 232, 234, 0.65);
        border-radius: 999px;
        background: rgba(230, 232, 234, 0.1);
        color: var(--rui-white) !important;
        box-shadow: none;
    }

    .nav-social {
        display: flex;
        width: 100%;
        gap: 0.8rem;
        padding: 1.15rem 1.35rem 1.35rem;
        opacity: 0;
        transform: translateY(14px);
    }

    .nav-social .social-link,
    .nav-social .social-link:hover {
        width: 44px;
        height: 44px;
        color: var(--rui-white);
        border: 1px solid rgba(255, 255, 255, 0.35);
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
    }

    /* Make the hamburger become a clean close icon when open. */
    #check:checked ~ .hamburger-menu-container .hamburger-menu div {
        background: transparent;
    }

    #check:checked ~ .hamburger-menu-container .hamburger-menu div::before {
        transform: translateY(0) rotate(-45deg);
    }

    #check:checked ~ .hamburger-menu-container .hamburger-menu div::after {
        transform: translateY(0) rotate(45deg);
    }
}

@media (max-width: 560px) {
    .nav-container {
        min-height: 86px;
    }

    .nav-logo img {
        width: 98px;
    }

    .nav-btn {
        max-height: calc(100vh - 86px);
    }
}



/* ============================================================
   MOBILE RFQ BUTTON ALIGNMENT FIX
   Purpose:
   Makes the Request Quote item behave like a normal mobile
   navigation row inside the hamburger drawer.
============================================================ */

@media (max-width: 900px) {
    .nav-links .nav-rfq-button,
    .nav-links .nav-rfq-button:hover,
    .nav-links .nav-rfq-button.active {
        display: flex !important;
        width: 100% !important;
        min-height: 58px !important;
        margin: 0 !important;
        padding: 1rem 1.35rem !important;
        justify-content: flex-start !important;
        align-items: center !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--rui-white) !important;
        font-weight: 800 !important;
    }

    .nav-links .nav-rfq-button:hover,
    .nav-links .nav-rfq-button.active {
        background: rgba(255, 255, 255, 0.1) !important;
    }
}



/* ============================================================
   MOBILE MENU QUOTE CTA + CONTACT PATCH
   Purpose:
   Makes Request Quote clearly visible as a mobile CTA again,
   without the oversized/broken layout, and adds mobile contact
   information at the bottom of the hamburger drawer.
============================================================ */

/* Hidden on desktop; shown inside the mobile drawer only. */
.mobile-menu-contact {
    display: none;
}

@media (max-width: 900px) {
    /* Make Request Quote a clear mobile CTA button, but keep it neat. */
    .nav-links .nav-rfq-button,
    .nav-links .nav-rfq-button:hover,
    .nav-links .nav-rfq-button.active {
        display: flex !important;
        width: calc(100% - 2.7rem) !important;
        min-height: 54px !important;
        margin: 0.8rem 1.35rem !important;
        padding: 0.9rem 1.2rem !important;
        justify-content: center !important;
        align-items: center !important;
        border: 1px solid rgba(230, 232, 234, 0.62) !important;
        border-radius: 999px !important;
        background: linear-gradient(135deg, var(--rui-blue-dark), var(--rui-sky)) !important;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.20) !important;
        color: var(--rui-white) !important;
        font-weight: 850 !important;
        text-align: center !important;
    }

    .nav-links .nav-rfq-button:hover,
    .nav-links .nav-rfq-button.active {
        background: linear-gradient(135deg, var(--rui-sky), var(--rui-blue-dark)) !important;
    }

    .mobile-menu-contact {
        display: grid;
        gap: 0.7rem;
        padding: 0.95rem 1.35rem 1.35rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        color: var(--rui-white);
        opacity: 0;
        transform: translateY(14px);
    }

    #check:checked ~ .nav-btn .mobile-menu-contact {
        animation: mobileMenuItemReveal 0.45s ease forwards .75s;
    }

    .mobile-menu-contact-title {
        margin: 0;
        color: rgba(230, 232, 234, 0.72);
        font-size: 0.76rem;
        font-weight: 850;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .mobile-menu-contact a {
        display: inline-flex;
        align-items: center;
        gap: 0.65rem;
        color: rgba(255, 255, 255, 0.92);
        font-size: 0.94rem;
        font-weight: 650;
        text-decoration: none;
    }

    .mobile-menu-contact a:hover {
        color: var(--rui-white);
        text-decoration: underline;
        text-underline-offset: 0.22rem;
    }

    .mobile-menu-contact i {
        width: 1.25rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--rui-aluminium-light);
    }
}



/* ============================================================
   MOBILE MENU FOOTER-STYLE CONTACT DETAILS PATCH
   Purpose:
   Makes the mobile menu contact area match the footer contact
   structure more closely, with separate Technical Support and
   Sales blocks.
============================================================ */

.mobile-menu-contact {
    display: none;
}

@media (max-width: 900px) {
    .mobile-menu-contact {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
        padding: 1.25rem 1.35rem 1.55rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(7, 27, 61, 0.18);
        color: var(--rui-white);
        opacity: 0;
        transform: translateY(14px);
    }

    #check:checked ~ .nav-btn .mobile-menu-contact {
        animation: mobileMenuItemReveal 0.45s ease forwards .75s;
    }

    .mobile-menu-contact-card {
        display: grid;
        gap: 0.65rem;
        min-width: 0;
    }

    .mobile-menu-contact-card h2 {
        margin: 0 0 0.15rem;
        color: var(--rui-white);
        font-size: 0.92rem;
        line-height: 1.2;
        font-weight: 850;
        letter-spacing: 0.02em;
        text-transform: uppercase;
    }

    .mobile-menu-contact-card a {
        display: inline-flex;
        align-items: center;
        gap: 0.65rem;
        min-width: 0;
        color: rgba(255, 255, 255, 0.92);
        font-size: 0.92rem;
        font-weight: 550;
        line-height: 1.35;
        text-decoration: none;
        word-break: break-word;
    }

    .mobile-menu-contact-card a:hover {
        color: var(--rui-white);
        text-decoration: underline;
        text-underline-offset: 0.22rem;
    }

    .mobile-menu-contact-card i {
        width: 1.25rem;
        flex: 0 0 1.25rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--rui-white);
        font-size: 1rem;
    }
}

@media (max-width: 560px) {
    .mobile-menu-contact {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }

    .mobile-menu-contact-card h2 {
        font-size: 0.95rem;
    }

    .mobile-menu-contact-card a {
        font-size: 0.95rem;
    }
}

/* ============================================================
   STABILISATION / QA PATCH - GLOBAL BEHAVIOUR
============================================================ */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

[id] {
    scroll-margin-top: 9rem;
}

@media (max-width: 900px) {
    [id] {
        scroll-margin-top: 7rem;
    }
}


/* ============================================================
   PATCH 7008 / v31I - NAVBAR RFQ OUTLINE BUTTON FIX
   Purpose:
   - Changes the desktop RFQ navigation item from a filled button to
     a cleaner aerospace-style outline pill.
   - Prevents colour/gradient bleed by forcing a transparent background,
     no inner shadow, and a clipped pill shape.
   - Keeps the mobile hamburger RFQ item visible but removes the strong
     blue gradient that made the button look like it was bleeding.

   HTML note:
   The link text in the shared navbar HTML should be shortened to: RFQ
   Example: <a href="rfq.html" class="nav-rfq-button">RFQ</a>
============================================================ */

.nav-rfq-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 0.56rem 1.15rem !important;
    border: 1px solid rgba(11, 31, 58, 0.72) !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: var(--rui-navy) !important;
    font-size: 0.92rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.08em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
    isolation: isolate !important;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.nav-rfq-button::after {
    display: none !important;
}

.nav-rfq-button:hover,
.nav-rfq-button.active {
    background: rgba(11, 31, 58, 0.08) !important;
    border-color: var(--rui-navy) !important;
    color: var(--rui-navy) !important;
    transform: translateY(-1px);
    box-shadow: none !important;
}

@media (max-width: 900px) {
    .nav-links .nav-rfq-button,
    .nav-links .nav-rfq-button:hover,
    .nav-links .nav-rfq-button.active {
        display: flex !important;
        width: calc(100% - 2.7rem) !important;
        min-height: 54px !important;
        margin: 0.8rem 1.35rem !important;
        padding: 0.9rem 1.2rem !important;
        justify-content: center !important;
        align-items: center !important;
        border: 1px solid rgba(230, 232, 234, 0.68) !important;
        border-radius: 999px !important;
        background: transparent !important;
        color: var(--rui-white) !important;
        font-weight: 850 !important;
        letter-spacing: 0.08em !important;
        text-align: center !important;
        box-shadow: none !important;
        overflow: hidden !important;
    }

    .nav-links .nav-rfq-button:hover,
    .nav-links .nav-rfq-button.active {
        background: rgba(230, 232, 234, 0.12) !important;
        color: var(--rui-white) !important;
        border-color: rgba(255, 255, 255, 0.9) !important;
        transform: none;
    }
}


/* ============================================================
   7013 / v31N - FINAL RFQ NAV BUTTON POLISH
   Purpose:
   Keeps the RFQ navigation item as a clean outline pill on desktop,
   including when the RFQ page is active. Earlier CSS sections used
   filled/gradient button styles, so this final override intentionally
   sits at the end of the file and uses !important for stability.
============================================================ */
.nav-links .nav-rfq-button,
.nav-links .nav-rfq-button:visited {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 0.58rem 1.18rem !important;
    border: 1.4px solid rgba(11, 31, 58, 0.78) !important;
    border-radius: 999px !important;
    background: transparent !important;
    background-image: none !important;
    color: var(--rui-navy) !important;
    box-shadow: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

.nav-links .nav-rfq-button::after {
    display: none !important;
    content: none !important;
}

.nav-links .nav-rfq-button:hover,
.nav-links .nav-rfq-button:focus-visible,
.nav-links .nav-rfq-button.active {
    background: rgba(11, 31, 58, 0.055) !important;
    background-image: none !important;
    border-color: var(--rui-navy) !important;
    color: var(--rui-navy) !important;
    box-shadow: none !important;
    transform: none !important;
}

@media (max-width: 900px) {
    .nav-links .nav-rfq-button,
    .nav-links .nav-rfq-button:visited,
    .nav-links .nav-rfq-button:hover,
    .nav-links .nav-rfq-button:focus-visible,
    .nav-links .nav-rfq-button.active {
        display: flex !important;
        width: calc(100% - 2.7rem) !important;
        min-height: 54px !important;
        margin: 0.8rem 1.35rem !important;
        padding: 0.9rem 1.2rem !important;
        justify-content: center !important;
        align-items: center !important;
        border: 1px solid rgba(230, 232, 234, 0.72) !important;
        border-radius: 999px !important;
        background: transparent !important;
        background-image: none !important;
        color: var(--rui-white) !important;
        box-shadow: none !important;
        text-align: center !important;
        transform: none !important;
    }

    .nav-links .nav-rfq-button:hover,
    .nav-links .nav-rfq-button:focus-visible,
    .nav-links .nav-rfq-button.active {
        background: rgba(230, 232, 234, 0.12) !important;
        border-color: rgba(255, 255, 255, 0.9) !important;
    }
}
