/* ===== Prototype additions (new navigation + new pages) ===== */

/* ---------- Dropdown navigation ---------- */
.nav-links .nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-links .nav-item > a .fa-chevron-down {
    font-size: 10px;
    margin-left: 6px;
    transition: transform 0.25s ease;
}

.nav-links .nav-item:hover > a .fa-chevron-down {
    transform: rotate(180deg);
}

.nav-links .submenu {
    position: absolute;
    top: calc(100% + 14px);
    left: -18px;
    min-width: 230px;
    background: var(--white);
    border-radius: 10px;
    border-top: 3px solid var(--primary);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1005;
}

/* hover bridge so the menu does not close while moving the mouse down */
.nav-links .submenu::before {
    content: '';
    position: absolute;
    top: -17px;
    left: 0;
    right: 0;
    height: 17px;
}

.nav-links .nav-item:hover .submenu,
.nav-links .nav-item:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links .submenu a {
    padding: 10px 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links .submenu a i {
    width: 18px;
    color: var(--primary);
    font-size: 14px;
}

.nav-links .submenu a::after {
    display: none !important;
}

.nav-links .submenu a:hover,
.nav-links .submenu a.active {
    background: #fef2f2;
    color: var(--primary);
}

.nav-new {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: var(--primary);
    color: #fff;
    border-radius: 20px;
    padding: 2px 7px;
    margin-left: 4px;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .nav-links .nav-item {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .nav-links .nav-item > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .nav-links .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid var(--primary);
        border-radius: 0;
        margin: 4px 0 6px 6px;
        padding: 0;
        min-width: 0;
        display: none;
    }

    .nav-links .nav-item.open .submenu {
        display: flex;
    }

    .nav-links .nav-item.open > a .fa-chevron-down {
        transform: rotate(180deg);
    }

    .nav-links .submenu a {
        text-transform: none !important;
        font-weight: 600 !important;
    }
}

/* ---------- Generic helpers ---------- */
.proto-section {
    padding: 90px 0;
}

.proto-section.alt {
    background: var(--bg-light);
}

.proto-lead {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.8;
}

.proto-lead p + p {
    margin-top: 16px;
}

.hero-tagline {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    background: rgba(229, 57, 53, 0.9);
    padding: 8px 16px;
    border-radius: 4px;
    margin-bottom: 22px;
}

/* ---------- Business cards (home) ---------- */
.biz-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.biz-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 34px 26px 28px;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.biz-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.biz-card .biz-icon {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: #fef2f2;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 22px;
}

.biz-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.biz-card p {
    color: var(--text-light);
    font-size: 15px;
    flex: 1;
}

.biz-card .biz-link {
    margin-top: 18px;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

.biz-card .badge-new {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ---------- Intro split (about business) ---------- */
.intro-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-split h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.intro-split p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ---------- Scope cards ---------- */
.scope-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 40px;
}

.scope-grid.two {
    grid-template-columns: repeat(2, 1fr);
}

.scope-card {
    background: var(--white);
    border-radius: 14px;
    padding: 30px 28px;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.scope-card .scope-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.scope-card .scope-num {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.scope-card h3 {
    font-size: 19px;
    line-height: 1.3;
}

.scope-card > p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 14px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    position: relative;
    padding: 7px 0 7px 28px;
    color: #374151;
    font-size: 15px;
    line-height: 1.5;
}

.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--primary);
    font-size: 13px;
}

/* ---------- Applications ---------- */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-top: 40px;
}

.app-card {
    background: var(--white);
    border-radius: 12px;
    padding: 26px 22px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.07);
}

.app-card i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 14px;
}

.app-card h4 {
    font-size: 17px;
    margin-bottom: 6px;
}

.app-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* ---------- Why us (dark band) ---------- */
.why-band {
    background: var(--bg-dark);
    color: #fff;
    padding: 90px 0;
}

.why-band .section-title h2 {
    color: #fff;
}

.why-band .section-title p {
    color: rgba(255, 255, 255, 0.7);
}

.why-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.why-list .why-point {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 22px;
}

.why-list .why-point i {
    color: var(--primary);
    font-size: 22px;
    margin-top: 2px;
}

.why-list .why-point p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.6;
}

/* ---------- CTA ---------- */
.proto-cta {
    background: var(--primary);
    color: #fff;
    padding: 60px 0;
}

.proto-cta .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.proto-cta h3 {
    font-size: 28px;
    color: #fff;
}

.proto-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 6px;
}

.proto-cta .btn {
    background: #fff !important;
    color: var(--primary) !important;
}

/* ---------- Image placeholder (photo not yet provided) ---------- */
.img-placeholder {
    min-height: 380px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(229, 57, 53, 0.92), rgba(17, 17, 21, 0.92)),
        url('images/hero-bg-1.webp') center / cover;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    gap: 14px;
}

.img-placeholder i {
    font-size: 64px;
    opacity: 0.95;
}

.img-placeholder span {
    font-size: 13px;
    letter-spacing: 1px;
    opacity: 0.8;
    text-transform: uppercase;
}

/* ---------- "Content pending" marker (visible only in prototype) ---------- */
.pending-note {
    border: 2px dashed #f59e0b;
    background: #fffbeb;
    color: #92400e;
    border-radius: 12px;
    padding: 22px 26px;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 30px;
}

.pending-note strong {
    display: block;
    margin-bottom: 4px;
    color: #78350f;
}

.pending-note i {
    margin-right: 8px;
}

.team-card-pending {
    border: 2px dashed #e5e7eb;
    border-radius: 14px;
    padding: 36px 24px;
    text-align: center;
    color: var(--text-light);
    background: var(--white);
}

.team-card-pending .avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #f3f4f6;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #cbd5e1;
}

.team-card-pending h4 {
    color: var(--text-dark);
    font-size: 18px;
    margin-bottom: 4px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

/* Prototype banner */
.proto-banner {
    background: #111115;
    color: #fbbf24;
    text-align: center;
    font-size: 13px;
    padding: 7px 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .biz-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .scope-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .intro-split {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .biz-grid,
    .scope-grid,
    .scope-grid.two,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .intro-split h2 {
        font-size: 28px;
    }

    .img-placeholder {
        min-height: 260px;
    }

    .proto-section,
    .why-band {
        padding: 60px 0 !important;
    }
}

.why-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .why-grid.three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .proto-lead {
        text-align: left;
        margin: 0;
    }
}

@media (max-width: 576px) {
    .hero-tagline {
        font-size: 11px;
        letter-spacing: 1px;
        padding: 6px 10px;
    }
}

/* ===== Header restyle (as per reference design) ===== */
.top-header {
    background: #ffffff;
    box-shadow: none;
    border-bottom: 1px solid #e5e7eb;
}

.nav-links .btn-contact svg {
    margin-left: 8px;
    flex: 0 0 auto;
}

@media (min-width: 1025px) {
    .nav-links {
        margin-top: 0;
        gap: 44px;
    }

    .nav-links a {
        font-size: 17px;
        font-weight: 500;
        color: #111827;
        padding: 6px 0;
    }

    .nav-links .nav-item > a .fa-chevron-down {
        font-size: 12px;
        margin-left: 10px;
    }

    .nav-links a:not(.btn)::after {
        height: 3px;
        bottom: -6px;
        border-radius: 2px;
        background-color: #c8102e;
    }

    /* underline only under the text, not under the chevron */
    .nav-links .nav-item > a::after {
        right: 22px;
        width: auto !important;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease-in-out;
    }

    .nav-links .nav-item > a:hover::after,
    .nav-links .nav-item > a.active::after {
        transform: scaleX(1);
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: #111827;
    }

    .nav-links a.btn.btn-contact {
        width: auto;
        height: 46px;
        padding: 0 24px;
        margin-left: 8px;
        border-radius: 6px;
        font-size: 17px;
        font-weight: 500;
        background-color: #c8102e;
        box-shadow: none;
    }

    .nav-links a.btn.btn-contact:hover {
        background-color: #a50d26;
        box-shadow: 0 6px 16px rgba(200, 16, 46, 0.25);
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .nav-links {
        gap: 26px;
    }

    .nav-links a,
    .nav-links a.btn.btn-contact {
        font-size: 15px;
    }
}

@media (max-width: 1024px) {
    .nav-links a.btn.btn-contact {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #c8102e;
    }
}

/* Header spacing: menu starts close to the logo and spreads evenly */
@media (min-width: 1025px) {
    .top-header .container {
        max-width: 1240px;
        padding: 0 20px;
    }

    .nav-links {
        flex: 1;
        justify-content: space-between;
        margin-left: 60px;
        gap: 20px;
    }

    .nav-links a.btn.btn-contact {
        margin-left: 0;
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .nav-links {
        margin-left: 40px;
    }
}

/* ===== Mega menus (Renewables = "row", Company = "stack") ===== */
.mega-card .mega-img,
.mega-card .mega-text,
.mega-card .mega-title,
.mega-card .mega-desc {
    display: block;
}

.mega-card .mega-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mega-heading {
    display: none;
}

/* ---------- Desktop ---------- */
@media (min-width: 1025px) {
    .nav-links .nav-item.mega {
        position: static;
    }

    .nav-links .submenu.mega-menu {
        position: absolute;
        top: calc(100% + 6px);
        left: 50%;
        width: min(1240px, calc(100% - 40px));
        min-width: 0;
        transform: translate(-50%, 8px);
        border-top: none;
        border-radius: 18px;
        padding: 26px 28px 28px;
        display: block;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    }

    .nav-links .nav-item.mega:hover .submenu.mega-menu,
    .nav-links .nav-item.mega:focus-within .submenu.mega-menu {
        transform: translate(-50%, 0);
    }

    /* invisible bridge from the menu word down to the panel */
    .nav-links .submenu.mega-menu::before {
        top: -50px;
        height: 50px;
    }

    .mega-inner {
        display: grid;
        grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
        column-gap: 24px;
        row-gap: 14px;
    }

    .mega-heading {
        display: block;
        grid-column: 1 / -1;
        font-family: 'Space Grotesk', 'Inter', sans-serif;
        font-weight: 700;
        font-size: 30px;
        line-height: 1.2;
        color: #111827;
    }

    .nav-links .submenu.mega-menu a.mega-card {
        display: flex;
        padding: 0;
        margin: 0;
        border-radius: 14px;
        background: #fff;
        color: #111827;
        white-space: normal;
        font-size: inherit;
        transition: border-color 0.25s ease, box-shadow 0.25s ease;
    }

    .mega-card .mega-img {
        overflow: hidden;
        border-radius: 12px;
        flex: none;
    }

    .mega-card .mega-img img {
        transition: transform 0.4s ease;
    }

    .mega-card:hover .mega-img img {
        transform: scale(1.06);
    }

    .mega-card .mega-title {
        font-family: 'Space Grotesk', 'Inter', sans-serif;
        font-weight: 700;
        line-height: 1.2;
        color: #111827;
        transition: color 0.2s ease;
    }

    .mega-card:hover .mega-title,
    .mega-card.active .mega-title {
        color: #c8102e;
    }

    /* Renewables: photo left, title + description right */
    .mega-row .submenu.mega-menu a.mega-card {
        flex-direction: row;
        align-items: center;
        gap: 18px;
        padding: 12px;
        border: 1px solid #e5e7eb;
    }

    .mega-row .submenu.mega-menu a.mega-card:hover,
    .mega-row .submenu.mega-menu a.mega-card.active {
        background: #fff;
        border-color: #c8102e;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    }

    .mega-row .mega-card .mega-img {
        width: 46%;
        aspect-ratio: 16 / 10;
        border-radius: 10px;
    }

    .mega-row .mega-card .mega-text {
        flex: 1;
        min-width: 0;
    }

    .mega-row .mega-card .mega-title {
        font-size: 21px;
        margin-bottom: 6px;
    }

    .mega-row .mega-card .mega-desc {
        font-size: 14px;
        line-height: 1.45;
        font-weight: 400;
        color: #6b7280;
    }

    /* Company: photo above, title below */
    .mega-stack .submenu.mega-menu a.mega-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        border: none;
        border-radius: 0;
        background: transparent;
    }

    .mega-stack .submenu.mega-menu a.mega-card:hover,
    .mega-stack .submenu.mega-menu a.mega-card.active {
        background: transparent;
    }

    .mega-stack .mega-card .mega-img {
        width: 100%;
        aspect-ratio: 2.15 / 1;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    }

    .mega-stack .mega-card .mega-title {
        font-size: 24px;
        padding-left: 2px;
    }

    /* open state of the top-level word: red text + underline + chevron up */
    .nav-links .nav-item:hover > a {
        color: #c8102e;
    }

    .nav-links .nav-item:hover > a::after {
        transform: scaleX(1);
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .mega-heading {
        font-size: 24px;
    }

    .mega-stack .mega-card .mega-title {
        font-size: 19px;
    }

    .mega-row .mega-card .mega-title {
        font-size: 18px;
    }

    .mega-row .mega-card .mega-desc {
        font-size: 13px;
    }

    .mega-row .mega-card .mega-img {
        width: 42%;
    }
}

/* ---------- Tablet / mobile: full-screen accordion menu ---------- */
@media (max-width: 1024px) {
    .nav-links {
        gap: 0 !important;
        padding: 0 20px calc(20px + env(safe-area-inset-bottom)) !important;
    }

    .nav-links .mobile-menu-header {
        margin-bottom: 4px;
        padding-top: calc(16px + env(safe-area-inset-top));
    }

    .nav-links a::after {
        display: none !important;
    }

    .nav-links > a:not(.btn),
    .nav-links .nav-item > a.nav-parent {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        font-size: 20px !important;
        font-weight: 600 !important;
        text-transform: none !important;
        letter-spacing: 0;
        color: #111827 !important;
        padding: 22px 4px !important;
        border-bottom: 1px solid #e5e7eb;
        transition: color 0.25s ease, border-color 0.25s ease;
    }

    .nav-links .nav-item > a.nav-parent .fa-chevron-down {
        font-size: 16px;
        margin-left: 12px;
        transition: transform 0.3s ease;
    }

    .nav-links .nav-item.open > a.nav-parent {
        color: #c8102e !important;
        border-bottom: 2px solid #c8102e;
    }

    .nav-links .nav-item.open > a.nav-parent .fa-chevron-down {
        transform: rotate(180deg);
    }

    /* the sub-menu itself is only a wrapper; .mega-inner animates open/closed */
    .nav-links .submenu.mega-menu {
        display: block !important;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin: 0;
        padding: 0;
        min-width: 0;
        background: transparent;
    }

    .mega-inner {
        display: grid;
        gap: 18px 14px;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        opacity: 0;
        transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.25s ease;
    }

    .nav-item.open .mega-inner {
        max-height: 900px;
        padding: 22px 0 26px;
        opacity: 1;
        border-bottom: 1px solid #e5e7eb;
    }

    .mega-row .mega-inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mega-stack .mega-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mega-heading,
    .mega-card .mega-desc {
        display: none !important;
    }

    .nav-links .submenu.mega-menu a.mega-card {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: auto;
        padding: 0 !important;
        margin: 0;
        border: none;
        background: transparent;
        font-size: 17px !important;
        font-weight: 600 !important;
        text-transform: none !important;
        color: #111827 !important;
    }

    .mega-card .mega-img {
        width: 100%;
        border-radius: 14px;
        overflow: hidden;
    }

    .mega-row .mega-card .mega-img {
        aspect-ratio: 1.15 / 1;
    }

    .mega-stack .mega-card .mega-img {
        aspect-ratio: 1.8 / 1;
    }

    .mega-row .mega-card .mega-title {
        text-align: center;
    }

    .mega-stack .mega-card .mega-title {
        text-align: left;
        padding-left: 4px;
    }

    /* Contact button pinned to the bottom of the menu, above the safe area */
    .nav-links a.btn.btn-contact {
        margin-top: auto !important;
        position: sticky;
        bottom: calc(16px + env(safe-area-inset-bottom));
        flex: none;
        width: 100%;
        height: 56px;
        font-size: 19px !important;
        font-weight: 600 !important;
        text-transform: none !important;
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(200, 16, 46, 0.25);
    }

    .nav-links::after {
        content: '';
        display: block;
        flex: none;
        height: 4px;
    }
}

@media (max-width: 400px) {
    .nav-links .submenu.mega-menu a.mega-card {
        font-size: 15px !important;
    }

    .nav-links > a:not(.btn),
    .nav-links .nav-item > a.nav-parent {
        font-size: 18px !important;
        padding: 18px 4px !important;
    }
}

/* anchored service cards: leave room for the sticky header */
.op-card[id] {
    scroll-margin-top: 140px;
}

.op-card:target {
    outline: 2px solid #c8102e;
    outline-offset: 4px;
}

/* Mobile menu: bigger logo, semi-bold system font, aligned titles */
@media (max-width: 1024px) {
    .nav-links .mobile-menu-brand img {
        height: 84px !important;
        width: auto;
    }

    .nav-links > a:not(.btn),
    .nav-links .nav-item > a.nav-parent,
    .nav-links .submenu.mega-menu a.mega-card,
    .nav-links a.btn.btn-contact {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    }

    .nav-links > a:not(.btn),
    .nav-links .nav-item > a.nav-parent {
        font-size: 21px !important;
        font-weight: 600 !important;
    }

    .nav-links .submenu.mega-menu a.mega-card {
        font-size: 17px !important;
        font-weight: 600 !important;
    }

    .nav-links .mega-row .mega-card .mega-title {
        text-align: center !important;
    }

    .nav-links .mega-stack .mega-card .mega-title {
        text-align: left !important;
        padding-left: 6px;
    }
}

@media (max-width: 400px) {
    .nav-links .mobile-menu-brand img {
        height: 70px !important;
    }

    .nav-links > a:not(.btn),
    .nav-links .nav-item > a.nav-parent {
        font-size: 19px !important;
    }

    .nav-links .submenu.mega-menu a.mega-card {
        font-size: 15px !important;
    }
}

@media (max-width: 1024px) {
    .nav-links .submenu.mega-menu a.mega-card {
        align-items: stretch !important;
    }

    .nav-links .mobile-menu-brand img {
        height: 104px !important;
    }
}

@media (max-width: 400px) {
    .nav-links .mobile-menu-brand img {
        height: 84px !important;
    }
}

/* the off-canvas mobile menu must never create sideways scroll (clip keeps sticky header working) */
html, body { overflow-x: clip; }

