/* Biz Pulse client fixes (Oct 2026). Loaded after main.css on every page. */

/* Tile grids on free zone / offshore pages: centre any leftover tiles in the last row.
   Column count is set per grid in the HTML with bp-cols-N. */
.mainland-details .bp-grid {
    --g: 18px;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: var(--g) !important;
}
.mainland-details .mainland-license-grid.bp-grid { --g: 24px; }
.mainland-details .bp-grid > * {
    flex: 0 0 calc((100% - (var(--c) - 1) * var(--g)) / var(--c)) !important;
    max-width: calc((100% - (var(--c) - 1) * var(--g)) / var(--c)) !important;
    width: auto !important;
    grid-column: auto !important;
}
.bp-cols-1 { --c: 1; }
.bp-cols-2 { --c: 2; }
.bp-cols-3 { --c: 3; }
.bp-cols-4 { --c: 4; }
@media (max-width: 1199px) {
    .mainland-details .bp-cols-3,
    .mainland-details .bp-cols-4 { --c: 2; }
}
@media (max-width: 767px) {
    .mainland-details .bp-grid { --c: 1; }
}

/* Business Registration menu: Mainland description matches the 13px links beside it */
.biz-mega-grid p {
    font-size: 13px !important;
    line-height: 1.6 !important;
}

/* Ajman / RAK ICC offshore: LICENSES / ACTIVITIES heading matches the other section headings */
.mainland-details .ajman-offshore-list-block h3,
.mainland-details .rak-icc-list-block h3 {
    color: #102a54 !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    text-transform: uppercase !important;
}
/* Space between the new Advantages tiles and the next section */
.mainland-details .mainland-advantage-grid + .ajman-offshore-list-block,
.mainland-details .mainland-advantage-grid + .rak-icc-list-block {
    margin-top: 56px !important;
}

/* DIFC LICENSES / ACTIVITIES list: same text size as the rest of the page */
.mainland-details .mainland-band-intro ol {
    font-size: 16px !important;
    line-height: 1.7 !important;
}

/* Banking page */
.corporate-bank-page .fz-hero-content p + p { margin-top: 14px !important; }
.corporate-bank-page #corporate-bank-account-opening .accounting-service-points span { font-weight: 400 !important; }
.corporate-bank-page #corporate-bank-account-opening .accounting-service-points strong { font-weight: 700 !important; }
.corporate-bank-page .accounting-support-copy .accounting-service-points,
.corporate-bank-page .accounting-services-copy p + .accounting-service-points { margin: 18px 0 !important; }
.corporate-bank-page .accounting-service-points + p { margin-top: 18px !important; }

/* About page: "A Legacy of Entrepreneurship" as gold header, with a sub-header beneath */
.about-legacy-copy h2.bp-legacy-title {
    color: #a47c2c !important;
    margin-bottom: 10px !important;
}
.about-legacy-copy h3.bp-legacy-sub {
    color: #fff !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    margin: 0 0 24px !important;
}

/* Free zone / offshore / mainland heroes: text starts nearer the top, so the picture area is shorter */
.fz-hero.bp-hero-tight {
    padding-top: 70px !important;
    padding-bottom: 70px !important;
}
@media (max-width: 991px) {
    .fz-hero.bp-hero-tight { padding-top: 50px !important; padding-bottom: 50px !important; }
}

/* Header menu: Business Registration and Services are labels that open their menus (not links) */
.header-main .main-menu > nav > ul > li > a[href="#"] { cursor: default; }

/* Business Registration panel gets the same gold top line as the Services dropdown */
.header-main .main-menu ul li .submenu.biz-mega-menu::before { display: none !important; }
.header-main .main-menu .biz-mega-grid { border-top: 4px solid #a57e2c !important; }

/* Dropdowns stay open briefly when the pointer leaves, so moving onto them doesn't close them */
.header-main .main-menu ul li .submenu {
    transition: opacity .25s ease .35s, transform .25s ease .35s, visibility 0s linear .6s !important;
}
.header-main .main-menu ul li:hover > .submenu {
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear 0s !important;
}

/* About page opens with the stats strip on light blue */
.about-snapshot.bp-snapshot-top {
    background: #eaf2fb !important;
    border-bottom: 0 !important;
}
.about-snapshot.bp-snapshot-top .about-snapshot-intro,
.about-snapshot.bp-snapshot-top .about-stat { border-right-color: rgba(16,42,84,.12) !important; }

/* "Get in touch" box: left column starts at the top, level with the enquiry form */
.bp-contact-grid { align-items: start !important; }
@media (min-width: 992px) {
    .bp-contact-grid > .bp-contact-info { padding-top: 42px !important; }
}

/* Legal Services page */
.legal-services-page .bp-legal-section { padding: 90px 0; }
.legal-services-page .bp-legal-subhead { margin-top: 64px !important; }
.legal-services-page .accounting-support-copy h2 { margin-bottom: 14px; }
.legal-services-page .accounting-service-points { margin: 16px 0 !important; }
.legal-services-page .accounting-services-copy p + p { margin-top: 12px; }
.legal-services-page .accounting-service-points span { font-weight: 500; }
@media (max-width: 767px) { .legal-services-page .bp-legal-section { padding: 60px 0; } }
/* Legal Services tiles: same look as the free zone page tiles */
.legal-services-page .bp-legal-section {
    position: relative;
    background: linear-gradient(180deg, #f7f9fb 0%, #fff 58%, #f7f9fb 100%);
}
.legal-services-page .mainland-section-subhead h2 { margin: 0 0 24px !important; }
.legal-services-page .mainland-advantage-card {
    padding: 26px 22px;
    border: 1px solid rgba(16,42,84,.1);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(9,29,67,.07);
    color: #5f6678;
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.legal-services-page .mainland-advantage-card:hover {
    transform: translateY(-5px);
    border-color: rgba(165,126,44,.34);
    box-shadow: 0 24px 62px rgba(9,29,67,.11);
}
.legal-services-page .mainland-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 0 18px;
    border-radius: 8px;
    background: #f7e8c2;
    color: #102a54;
    font-size: 20px;
}
.legal-services-page .mainland-advantage-card h3 {
    color: #102a54;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
}
.legal-services-page .mainland-advantage-card p {
    color: #5b6676;
    font-size: 16px;
    line-height: 1.72;
    margin: 0;
}
.legal-services-page .accounting-support-copy p + p { margin-top: 12px; }
/* ...but close straight away when the pointer moves onto a neighbouring menu item */
.header-main .main-menu > nav > ul:hover > li:not(:hover) > .submenu {
    transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s !important;
}

/* Offshore overview hero sits behind the header, so it needs the header's height on top */
.fz-hero.offshore-hero.bp-hero-tight { padding-top: 260px !important; }
@media (max-width: 991px) {
    .fz-hero.offshore-hero.bp-hero-tight { padding-top: 170px !important; }
}

/* MCFZ Advantages: bullets turned into tiles (short headings, so shorter tiles), with space below */
.mcfz-page .bp-mcfz-adv { margin-bottom: 64px !important; }
.mcfz-page .bp-mcfz-adv .mainland-advantage-card { min-height: 0 !important; }
.mcfz-page .bp-mcfz-adv .mainland-advantage-card h3 { margin: 0 !important; }

/* ===== Oct 22 batch ===== */

/* Main page heading in gold on every page (overrides inline colours too) */
h1, h1 span { color: #a57e2c !important; }

/* X (Twitter) icon sized like the Font Awesome icons beside it */
.bp-x-icon { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; }

/* "Get in touch" box: bigger eyebrow, and the consent checkbox level with its text */
.bp-contact-section .bp-contact-eyebrow { font-size: 16px !important; letter-spacing: .08em; }
.bp-contact-section .bp-consent { align-items: center !important; }
.bp-contact-section .bp-consent input[type="checkbox"] { margin: 0 !important; flex: 0 0 auto; }

/* About: bigger "Built for long-term success", and a full line between the two legacy headings */

.about-snapshot .about-snapshot-intro > span { font-size: 18px !important; }
.about-legacy-copy h2.bp-legacy-title { margin-bottom: 32px !important; }

/* DMCC: "Tax and Financial Benefits" list text same size as the other two tiles */
.dmcc-page .dmcc-benefit-list li { font-size: 16px !important; line-height: 1.72 !important; }

/* Masdar (MCFZ) Advantages tile headings: not bold */
.mcfz-page .bp-mcfz-adv .mainland-advantage-card h3 { font-weight: 400 !important; }

/* Ajman Offshore: intro paragraph above the licence list */
.mainland-details .bp-ajman-licence-intro { font-size: 16px; line-height: 1.72; color: #5b6676; margin: 0 0 22px; }

/* Legal Services: tile titles beside their icon (like the free zone process tiles) */
.legal-services-page .mainland-advantage-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 15px;
    align-items: center;
}
.legal-services-page .mainland-advantage-card .mainland-card-icon { margin: 0 !important; }
.legal-services-page .mainland-advantage-card h3 { margin: 0 !important; }
.legal-services-page .mainland-advantage-card p { grid-column: 1 / -1; margin-top: 16px !important; }
/* Legal Services: every section header the same blue and size, and even spacing between sections */
.legal-services-page main h2,
.legal-services-page .mainland-section-subhead h2,
.legal-services-page .accounting-support-copy h2,
.legal-services-page .fz-intro h2 {
    color: #102a54 !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}
.legal-services-page .bp-legal-section,
.legal-services-page .fz-cost-section,
.legal-services-page .bp-legal-will { padding-top: 90px !important; padding-bottom: 90px !important; }
@media (max-width: 767px) {
    .legal-services-page main h2 { font-size: 26px !important; }
    .legal-services-page .bp-legal-section,
    .legal-services-page .fz-cost-section,
    .legal-services-page .bp-legal-will { padding-top: 60px !important; padding-bottom: 60px !important; }
}

/* PRO Services: "Core Benefits" header in blue, list text not bold */
.bp-pro-benefits { color: #102a54 !important; }
.bp-pro-benefits + .accounting-service-points span { font-weight: 400 !important; }
