@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&display=swap');

        /* CSS Guideline to replicate for all pages: */
        body {
            padding-top: 90px;
            font-family: 'DM Sans', sans-serif;
            margin: 0;
            padding: 0;
            background-color: #ffffff;
            color: #333;
        }
        /* ═══════════════════════════════════════════════════════
           HEADER & COLLAPSIBLE NAV PANEL  rt-ws-5.0.d
        ═══════════════════════════════════════════════════════ */

        /* ═══════════════════════════════════════════════════════
           HEADER  rt-ws-5.0.i
           Layout: [logo-icon][logo-wordmark] [menu-btn flex:1] [Book a Meeting]
        ═══════════════════════════════════════════════════════ */

        .header {
            background-color: #ffffff;
            color: #1a2b47;
            padding: 0 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            position: fixed;
            top: 0; left: 0; right: 0;
            height: 90px;
            z-index: 1000;
            box-shadow: 0 2px 6px rgba(0,0,0,0.07);
            box-sizing: border-box;
        }

        /* ── Logo group — icon + wordmark side by side, no gap ── */
        .header-logos {
            display: flex;
            align-items: center;
            gap: 0;
            flex-shrink: 0;
        }
        .logo-link {
            display: flex;
            align-items: center;
            text-decoration: none;
            line-height: 0;
        }
        .logo-icon    { height: 80px; }
        .logo-wordmark { height: 50px; }

        /* ── Menu toggle — fills all space between logos and CTA ─ */
        /* Spacer pushes icon buttons right */
        .header-spacer { flex: 1; }

        /* ── Shared square icon button style ─────────────────── */
        .hdr-icon-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 46px;
            height: 46px;
            flex-shrink: 0;
            background: #ffffff;
            border: 1.5px solid #d0d8e4;
            border-radius: 10px;
            cursor: pointer;
            padding: 6px;
            text-decoration: none;
            transition: border-color .2s, box-shadow .2s, background .15s;
        }
        .hdr-icon-btn svg {
            width: 100%;
            height: 100%;
            display: block;
        }
        .hdr-icon-btn:hover {
            border-color: #ff5733;
            box-shadow: 0 0 0 3px rgba(255,87,51,.1);
        }
        .hdr-icon-btn:focus {
            outline: 2px solid #ff5733;
            outline-offset: 2px;
        }
        /* Menu toggle open state */
        .menu-toggle.open {
            border-color: #ff5733;
            background: #fff5f3;
            box-shadow: 0 0 0 3px rgba(255,87,51,.12);
        }
        .menu-toggle.open svg line {
            stroke: #ff5733;
        }

        /* ── Nav panel ─────────────────────────────────────────── */
        .nav-panel {
            position: fixed;
            top: 90px;           /* sits flush below header */
            left: 0;
            right: 0;
            background: #fff;
            border-top: 3px solid #ff5733;
            box-shadow: 0 8px 32px rgba(0,0,0,0.13);
            z-index: 999;
            max-height: 0;
            overflow: hidden;
            transition: max-height .35s cubic-bezier(.4,0,.2,1);
        }
        .nav-panel.open {
            max-height: 90vh;
            overflow-y: auto;
        }
        .nav-panel-inner {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 0;
            padding: 20px 32px 28px;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* ── Top-level items (standard links, Home) ─────────────── */
        .nav-panel-item {
            padding: 4px 0;
        }
        .nav-panel-link {
            display: block;
            color: #1a2b47;
            text-decoration: none;
            font-size: 15px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: .04em;
            padding: 10px 12px;
            border-radius: 5px;
            transition: background .15s, color .15s;
        }
        .nav-panel-link:hover { background: #fff5f3; color: #ff5733; }
        .nav-panel-link.active { color: #ff5733; }

        /* ── Division groups ─────────────────────────────────────── */
        .nav-panel-group {
            border-right: 1px solid #f0f0f0;
            padding: 8px 16px 16px;
        }
        .nav-panel-group:last-child { border-right: none; }
        /* Top-level label is now a link */
        .nav-panel-group-link {
            font-size: 15px;
            font-weight: 700;
            color: #0c1a32;
            text-decoration: none;
            text-transform: uppercase;
            letter-spacing: .04em;
            flex: 1;
            display: flex;
            align-items: baseline;
            gap: 8px;
            padding: 8px 0 10px;
        }
        .nav-panel-group-link:hover { color: #ff5733; }
        .nav-panel-group-link.active { color: #ff5733; }

        .nav-panel-group-head {
            display: flex;
            align-items: center;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            padding: 8px 0 10px;
            border-bottom: 1px solid #eee;
            margin-bottom: 10px;
            user-select: none;
        }
        .nav-panel-group-label {
            font-size: 15px;
            font-weight: 700;
            color: #0c1a32;
            text-transform: uppercase;
            letter-spacing: .04em;
            display: flex;
            align-items: baseline;
            gap: 8px;
        }
        .nav-panel-division {
            font-size: 10px;
            font-weight: 500;
            color: #888;
            text-transform: none;
            letter-spacing: .02em;
            background: #f5f5f5;
            padding: 2px 7px;
            border-radius: 10px;
            white-space: nowrap;
        }
        .nav-panel-chevron {
            font-size: 16px;
            color: #bbb;
            transition: transform .2s;
            display: inline-block;
        }
        .nav-panel-group-head.open .nav-panel-chevron { transform: rotate(90deg); }

        /* Sub-items (always visible — no collapse needed inside panel) */
        .nav-panel-children {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .nav-panel-child {
            display: flex;
            align-items: baseline;
            gap: 8px;
            padding: 7px 8px;
            border-radius: 5px;
            text-decoration: none;
            color: #1a2b47;
            font-size: 14px;
            transition: background .13s, color .13s;
        }
        .nav-panel-child:hover { background: #fff5f3; color: #ff5733; }
        .nav-panel-child.active { color: #ff5733; font-weight: 600; }
        .nav-panel-child-name {
            font-weight: 600;
            white-space: nowrap;
        }
        .nav-panel-child-desc {
            font-size: 12px;
            color: #aaa;
            font-weight: 400;
        }
        .nav-panel-child:hover .nav-panel-child-desc { color: #ff9977; }

        /* ── Backdrop ────────────────────────────────────────────── */
        .nav-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            top: 90px;
            background: rgba(0,0,0,0);
            z-index: 998;
            transition: background .3s;
        }
        .nav-backdrop.visible {
            display: block;
            background: rgba(0,0,0,0.35);
        }

        /* ── Body padding matches header height ──────────────────── */

        .hero-section {
            background-color: #1a2b47;
            color: #ffffff;
            text-align: center;
            min-height: 420px;
            padding: 60px 5%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            position: relative;
            z-index: 1;
        }
        /* Optional: Overlay to guarantee readability over the image */
        .hero-section::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.4); /* Black overlay with 40% opacity */
            z-index: -1;
        }
        .hero-section h1 {
            font-size: 3em;
            margin-bottom: 20px;
            font-weight: 700;
        }
        .content-section {
            padding: 80px 5%;
            max-width: 1200px;
            margin: 0 auto;
        }
        .section-title {
            font-size: 1.9em;
            color: #0c1a32;
            margin-bottom: 40px;
            border-left: 5px solid #ff5733;
            padding-left: 15px;
            font-weight: 600;
            letter-spacing: 0.02em;
        }
        .card-container {
            display: flex;
            gap: 30px;
            flex-wrap: wrap;
        }
        .card {
            flex: 1 1 30%;
            padding: 30px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
            border-top: 5px solid #0c1a32;
            min-width: 280px;
        }
                /* ── Footer ── */
        .footer {
            background-color: #0c1a32;
            color: #cccccc;
            padding: 40px 5%;
            text-align: center;
            font-size: 14px;
        }
        /* ── Contact Form ── */
        /* ── Form table layout ── */
        .contact-form-wrap {
            max-width: 700px;
            margin-top: 30px;
            font-family: 'DM Sans', sans-serif;
        }
        .form-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0 12px;
        }
        .form-table td {
            padding: 0 10px 0 0;
            vertical-align: top;
        }
        .form-table td:last-child { padding-right: 0; }
        .form-table td.label-col {
            width: 170px;
            padding-top: 11px;
            text-align: right;
            white-space: nowrap;
        }
        .form-table td.field-col { }
        .form-table td.field-col.half { width: 42%; }
        .form-table td.spacer-col { width: 24px; }

        /* legacy flex rows kept for non-table usage */
        .form-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
        .form-group { flex: 1 1 240px; display: flex; flex-direction: column; gap: 6px; }
        .form-group label {
            font-size: 13px;
            font-weight: 500;
            color: #0c1a32;
            text-transform: uppercase;
            letter-spacing: .04em;
            font-family: 'DM Sans', sans-serif;
        }
        .form-label {
            font-family: 'DM Sans', sans-serif;
            font-size: 13px;
            font-weight: 700;
            color: #0c1a32;
            text-transform: uppercase;
            letter-spacing: .04em;
        }
        .form-group input,
        .form-group select,
        .form-group textarea {
            font-family: 'DM Sans', sans-serif;
            font-size: 15px;
            color: #333;
            background: #f7f8fa;
            border: 1px solid #d0d8e4;
            border-radius: 5px;
            padding: 11px 14px;
            outline: none;
            transition: border-color 0.2s;
        }
        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus { border-color: #ff5733; background: #fff; }
        .form-group textarea { resize: vertical; min-height: 120px; }
        /* Submit button — matches site-wide CTA style exactly */
        .form-submit-wrap {
            text-align: center;
            margin-top: 16px;
        }
        .form-submit {
            background-color: #ff5733;
            color: white;
            padding: 15px 30px;
            border: none;
            font-family: 'DM Sans', sans-serif;
            font-size: 16px;
            font-weight: bold;
            border-radius: 5px;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            transition: background-color 0.2s;
        }
        .form-submit:hover { background-color: #e04420; }
        /* Specific Styles for Contact/Careers (Forms, Lists) */
        .contact-details, .contact-form, .job-listing { margin-top: 30px; }
/* ------------------------------------------- */
/* 🔑 Sticky Footer Navigation CSS */
/* ------------------------------------------- */

/* 1. Hide the menu by default (for desktops) */
#mobile-nav-bar {
    display: none;
    visibility: hidden;
}

/* 2. Media Query to make the menu visible ONLY on small screens */
@media (max-width: 768px) {
    #mobile-nav-bar {
        display: block;
        visibility: visible;
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 1000;
        width: 100%;
        background-color: #333;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
        /* No fixed height — grows naturally to fit wrapped items */
    }

    /* 3. Nav wraps onto multiple lines when items don't fit */
    #mobile-nav-bar nav {
        display: flex;
        flex-wrap: wrap;              /* ← allows second row */
        justify-content: space-around;
        align-items: center;
        padding: 6px 0;
    }

    /* 4. Each menu item: fixed width so items align evenly across rows */
    .nav-item {
        color: white;
        text-decoration: none;
        font-size: 11px;
        text-align: center;
        padding: 6px 4px;
        display: flex;
        flex-direction: column;
        gap: 1px;
        flex: 0 1 auto;
        min-width: 60px;             /* minimum tap target width */
        max-width: 80px;
        white-space: nowrap;
    }

    .nav-item.active {
        color: #ff5733;
    }

    /* 5. Body padding accounts for up to two-row nav bar (~120px max) */
    body {
        padding-bottom: 120px;
    }
}

/* ═══════════════════════════════════════════════
   CAPTCHA & Form Response Styles
   ═══════════════════════════════════════════════ */

.captcha-block {
    background: #f0f4fa;
    border: 1px solid #d0d8e4;
    border-radius: 7px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.captcha-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #0c1a32;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 10px;
}

.captcha-icon {
    margin-right: 6px;
}

.captcha-question {
    color: #ff5733;
    font-size: 15px;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-input {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: #333;
    background: #ffffff;
    border: 2px solid #d0d8e4;
    border-radius: 5px;
    padding: 10px 14px;
    width: 120px;
    outline: none;
    transition: border-color 0.2s;
    -moz-appearance: textfield;
}

.captcha-input::-webkit-outer-spin-button,
.captcha-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.captcha-input:focus {
    border-color: #ff5733;
    background: #fff;
}

.captcha-refresh {
    background: #0c1a32;
    color: #fff;
    border: none;
    border-radius: 5px;
    width: 38px;
    height: 38px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-refresh:hover {
    background-color: #ff5733;
    transform: rotate(90deg);
}

.captcha-error {
    color: #d63031;
    font-size: 13px;
    margin-top: 8px;
    margin-bottom: 0;
    font-weight: 500;
}

/* ── Form response banners ── */
.form-banner {
    display: none;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 16px;
    line-height: 1.5;
}

.form-banner-success {
    background: #eafaf1;
    border: 1px solid #69db7c;
    color: #1a6b3c;
}

.form-banner-error {
    background: #fff0ef;
    border: 1px solid #ff6b6b;
    color: #c0392b;
}
