/* =========================================================
   SHARED SITE CHROME — navbar + footer (single source of truth)
   Loaded LAST on every page so it is always authoritative.
   Edit the site-wide header/footer here and nowhere else.
========================================================= */

:root {
    --solar-gold: #F59E0B;
}

/* ---------------------------------------------------------
   HEADER / NAVIGATION
--------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 17, 31, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.3s ease;
}

.header.scrolled {
    background: rgba(7, 17, 31, 0.96);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.header.scrolled .nav-container {
    height: 64px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    height: 78px;
    transition: height 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    flex-shrink: 0;
}

.logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 2px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text strong {
    font-size: 16px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.logo-text span {
    font-size: 11px;
    color: var(--solar-gold);
    font-weight: 800;
    letter-spacing: 2px;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: #CBD5E1;
    position: relative;
    padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--solar-gold);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--solar-gold);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

.header-btn {
    padding: 10px 22px;
    background: var(--solar-gold);
    color: #0A192F;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.6;
    border-radius: 50px;
    white-space: nowrap;
    transition: 0.25s;
}

.header-btn:hover {
    background: #FBBF24;
    transform: translateY(-1px);
}

.menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 26px;
    cursor: pointer;
}

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */
.footer {
    background: #060F1D;
    color: #94A3B8;
    padding-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-brand .logo-text strong {
    color: #FFFFFF;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.65;
    margin: 18px 0 22px;
    color: #94A3B8;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #CBD5E1;
    font-size: 13px;
    font-weight: 700;
}

.footer-social a:hover {
    background: var(--solar-gold);
    color: #0A192F;
    border-color: var(--solar-gold);
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 16px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-col li a {
    font-size: 14px;
    color: #94A3B8;
}

.footer-col li a:hover {
    color: var(--solar-gold);
    padding-left: 4px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-list p {
    font-size: 14px;
    color: #94A3B8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact-list a {
    color: inherit;
}

.footer-contact-list a:hover {
    color: var(--solar-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0;
    font-size: 13px;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a:hover {
    color: var(--solar-gold);
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */
@media (max-width: 1050px) {
    .navbar {
        display: none;
        position: absolute;
        top: 78px;
        left: 4%;
        width: 92%;
        background: rgba(7, 17, 31, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px 20px;
        border-radius: 16px;
        box-shadow: 0 24px 50px rgba(10, 25, 47, 0.30);
        gap: 6px;
    }

    .navbar.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 10px 0;
        font-size: 15px;
    }

    .header-btn {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* =========================================================
   NAV MEGA-MENU (Services / Products dropdowns)
========================================================= */

.nav-drop {
    position: static;
    display: flex;
    align-items: center;
}

.nav-drop-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav-caret {
    width: 13px;
    height: 13px;
    transition: transform 0.25s ease;
}

.nav-drop:hover .nav-caret {
    transform: rotate(180deg);
}

.mega {
    position: absolute;
    top: 100%;
    left: 50%;
    width: min(1200px, 92%);
    background: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 14px;
    box-shadow: 0 26px 46px rgba(7, 17, 31, 0.16);
    padding: 30px 34px 34px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 999;
}

.mega::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -26px;
    height: 26px;
}

.nav-drop:hover .mega {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.mega-inner {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px 34px;
}

.mega-col h4 {
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #b45309;
    text-transform: uppercase;
    padding-bottom: 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid #eef1f5;
}

.mega-col a {
    display: block;
    font-size: 13.5px;
    color: #334155;
    padding: 6px 0;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mega-col a:hover {
    color: var(--solar-gold);
    padding-left: 5px;
}

/* ---- mobile: dropdowns become inline accordions inside the menu ---- */
@media (max-width: 1050px) {
    .navbar {
        max-height: calc(100vh - 96px);
        overflow-y: auto;
    }

    .nav-drop {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .nav-drop-toggle {
        justify-content: space-between;
        width: 100%;
    }

    .nav-drop.open .nav-caret {
        transform: rotate(180deg);
    }

    .mega {
        position: static;
        width: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        display: none;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 4px 0 10px;
        z-index: auto;
    }

    .mega::before {
        display: none;
    }

    .nav-drop.open .mega {
        display: block;
    }

    .mega-inner {
        width: 100%;
        display: block;
    }

    .mega-col {
        margin: 6px 0 12px;
    }

    .mega-col h4 {
        color: var(--solar-gold);
        border-bottom-color: rgba(255, 255, 255, 0.12);
        font-size: 11.5px;
    }

    .mega-col a {
        color: #CBD5E1;
        font-size: 14px;
        padding: 7px 0 7px 12px;
    }
}

/* ---- Products flat list + nested mobile accordion ---- */
.mega-caret2 { display: none; }

.mega-products .mega-flat {
    width: 100%;
    display: block;
}

.mega-flat a {
    display: block;
    font-size: 13.5px;
    color: #334155;
    padding: 8px 0;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mega-flat a:hover {
    color: var(--solar-gold);
    padding-left: 5px;
}

@media (max-width: 1050px) {
    .mega-col {
        margin: 0;
    }

    .mega-col h4 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        padding: 13px 2px;
        margin: 0;
        font-size: 13px;
        letter-spacing: 0;
        text-transform: none;
        color: #E2E8F0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mega-caret2 {
        display: inline-flex;
        width: 15px;
        height: 15px;
        color: var(--solar-gold);
        transition: transform 0.25s ease;
        flex-shrink: 0;
    }

    .mega-col.open .mega-caret2 {
        transform: rotate(180deg);
    }

    .mega-col a {
        display: none;
        color: #94A3B8;
        font-size: 13.5px;
        padding: 9px 0 9px 14px;
    }

    .mega-col.open a {
        display: block;
    }

    .mega-products .mega-flat {
        width: 100%;
        display: block;
        grid-template-columns: none;
    }

    .mega-flat a {
        display: block;
        color: #CBD5E1;
        font-size: 13.5px;
        padding: 9px 0 9px 14px;
    }
}

/* ---- Products: compact single-column dropdown (desktop only) ---- */
@media (min-width: 1051px) {
    .nav-drop:has(.mega-products) {
        position: relative;
    }

    .mega-products {
        left: 0;
        width: 268px;
        padding: 14px 12px;
        transform: translateY(8px);
    }

    .nav-drop:hover .mega-products {
        transform: translateY(0);
    }

    .mega-products .mega-flat a {
        padding: 10px 14px;
        border-radius: 8px;
        font-size: 14px;
        color: #334155;
        transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
    }

    .mega-products .mega-flat a:hover {
        background: #f6f8fb;
        color: var(--solar-gold);
        padding-left: 18px;
    }
}

/* =========================================================
   ENQUIRY POPUP (site-wide, via partials/enquiry_popup.html)
========================================================= */

.enquiry-popup {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.enquiry-popup.show {
    display: flex;
}

.enquiry-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 17, 31, 0.65);
    backdrop-filter: blur(5px);
}

.enquiry-box {
    position: relative;
    z-index: 2;
    width: min(480px, 92%);
    background: #ffffff;
    border-radius: 22px;
    padding: 40px 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    animation: enquiryOpen 0.3s ease;
}

@keyframes enquiryOpen {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.enquiry-box h3 {
    font-family: "Manrope", sans-serif;
    font-size: 24px;
    color: #172033;
    margin-bottom: 5px;
}

.enquiry-box > p {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 22px;
}

.enquiry-box .form-group {
    margin-bottom: 14px;
}

.enquiry-box .form-group input,
.enquiry-box .form-group select,
.enquiry-box .form-group textarea {
    width: 100%;
    border: 1px solid #dbe1e8;
    outline: none;
    background: #f7f9fc;
    border-radius: 10px;
    padding: 13px 14px;
    font-size: 13px;
    color: #172033;
    transition: 0.25s;
}

.enquiry-box .form-group textarea {
    resize: vertical;
    min-height: 84px;
    font-family: inherit;
}

.enquiry-box .form-group input:focus,
.enquiry-box .form-group select:focus,
.enquiry-box .form-group textarea:focus {
    border-color: var(--solar-gold);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.10);
}

.enquiry-submit {
    width: 100%;
    border: 0;
    cursor: pointer;
    background: var(--solar-gold);
    color: #111827;
    font-weight: 800;
    font-size: 14px;
    padding: 14px 20px;
    border-radius: 50px;
    transition: 0.25s;
}

.enquiry-submit:hover {
    background: #FBBF24;
    transform: translateY(-2px);
}

.enquiry-box .enquiry-iso {
    text-align: center;
    margin: 16px 0 0;
    color: var(--solar-gold);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* in-card success state after a form is submitted (keeps the card's size, centered) */
.form-success {
    text-align: center;
    padding: 26px 12px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.form-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-success-icon svg {
    width: 38px;
    height: 38px;
}

.form-success h4 {
    font-family: "Manrope", sans-serif;
    font-size: 21px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}

.form-success p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* LinkedIn floating action button (base .float-btn styling comes from each page CSS) */
.linkedin-btn {
    background: #0A66C2;
}

.enquiry-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
}

/* ---- mobile fix: never apply the desktop centered-card transform ----
   On phones a tap fires :hover, which re-applied translateX(-50%) and shoved
   the dropdown half its width off the left edge (clipping the items). */
@media (max-width: 1050px) {
    .mega,
    .nav-drop.open .mega,
    .nav-drop:hover .mega,
    .nav-drop:hover .mega-products {
        transform: none;
    }
}
