/* Google Fonts are loaded from page templates (single request). Do not @import here. */

:root {
    /* Brand Colors - Anchored in Navy & White */
    --clr-navy: #0F1D4A;
    --clr-navy-light: #1A2E6B;
    --clr-navy-dark: #060B1E;
    
    /* Light Foundation */
    --clr-bg: #FFFFFF;
    --clr-surface: #F8FAFC;
    
    /* Glamorous Deep Accents */
    --clr-primary: #2563EB;   /* Royal Blue */
    --clr-accent: #38BDF8;    /* Corporate Cyan */
    --clr-gold: #D4AF37;      /* Prestige Gold */
    --clr-gold-light: #FCE181;
    --clr-purple: #4C1D95;    /* Deep Royal Purple for depth */
    --clr-teal: #0F766E;      /* Rich Teal for vibrancy */

    /* Typography */
    --clr-text-main: #111827;
    --clr-text-muted: #4B5563;
    --clr-text-white: #FFFFFF;
    --clr-text-white-muted: rgba(255,255,255,0.85);
    --font-main: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    /* Structure */
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 30px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Premium Shadows & Glows */
    --shadow-soft: 0 10px 30px rgba(15, 29, 74, 0.08);
    --shadow-hover: 0 20px 40px rgba(15, 29, 74, 0.15);
    --shadow-deep: 0 25px 50px -12px rgba(15, 29, 74, 0.25);
    --glow-gold: 0 0 20px rgba(212, 175, 55, 0.4);
    
    --header-height: 62px;
    --max-width: 1400px;
}

/* Global Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-main);
    color: var(--clr-text-main);
    background-color: var(--clr-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--clr-navy); }
.font-serif { font-family: var(--font-serif) !important; }
p { font-size: 1.125rem; color: var(--clr-text-muted); margin-bottom: 24px; font-weight: 300; }
a { text-decoration: none; color: var(--clr-primary); transition: var(--transition-fast); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--border-radius-sm); }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
.section-padding { padding: 110px 0; }

/* Utility Classes */
.text-white { color: var(--clr-text-white) !important; }
.text-white-muted { color: var(--clr-text-white-muted) !important; }
.bg-navy { background-color: var(--clr-navy); color: var(--clr-text-white); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--clr-text-white); }
.bg-navy p { color: var(--clr-text-white-muted); }
.bg-surface { background-color: var(--clr-surface); }

/* Astonishing Text Gradients & Shimmers */
.text-gradient {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-shimmer-gold {
    background: linear-gradient(90deg, var(--clr-gold) 0%, var(--clr-gold-light) 50%, var(--clr-gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 3s linear infinite;
}
@keyframes textShimmer {
    to { background-position: 200% center; }
}

.section-title { font-size: clamp(2.4rem, 4.2vw, 3.4rem); margin-bottom: 20px; position: relative; z-index: 2; line-height: 1.12; letter-spacing: -1px; }
.section-title.serif { font-family: var(--font-serif); font-weight: 900; }
.section-subtitle { font-size: 1.2rem; color: var(--clr-text-muted); max-width: 760px; margin-bottom: 44px; line-height: 1.6; }

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin: 44px 0;
}
.bento-item {
    background: #fff;
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15, 29, 74, 0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(212, 175, 55, 0.2);
}
.bento-12 { grid-column: span 12; }
.bento-8 { grid-column: span 8; }
.bento-6 { grid-column: span 6; }
.bento-4 { grid-column: span 4; }

/* Outcome Metrics */
.metric-box {
    text-align: center;
    padding: 30px;
}
.metric-value {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 900;
    color: var(--clr-gold);
    line-height: 1;
    margin-bottom: 10px;
}
.metric-label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-navy-light);
}

/* Timeline / Process Step */
.process-timeline {
    position: relative;
    padding: 60px 0;
}
.process-step-premium {
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
    align-items: center;
}
.process-step-premium:nth-child(even) { flex-direction: row-reverse; }
.process-number-glam {
    font-family: var(--font-serif);
    font-size: 8rem;
    font-weight: 900;
    color: rgba(15, 29, 74, 0.03);
    line-height: 0.8;
    position: relative;
    user-select: none;
}
.process-number-glam::after {
    content: attr(data-num);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--clr-gold);
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

/* Buttons completely revamped to Glamorous Corporate Premium */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    padding: 18px 45px; font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
    border-radius: 50px; /* Pillow shape for glamour */
    cursor: pointer; transition: var(--transition-smooth);
    position: relative; overflow: hidden; border: 1px solid transparent; z-index: 1;
}
.btn::after {
    content: ''; position: absolute; top: -50%; left: -60%; width: 20%; height: 200%;
    background: rgba(255,255,255,0.3); transform: rotate(30deg); transition: 0.5s; opacity: 0;
}
.btn:hover::after { left: 120%; opacity: 1; transition: 0.7s; }

.btn-primary {
    background: linear-gradient(135deg, var(--clr-navy), var(--clr-navy-light)); color: var(--clr-text-white);
    box-shadow: 0 10px 25px -5px rgba(15, 29, 74, 0.4); border: 1px solid rgba(255,255,255,0.1);
}
.btn-primary:hover {
    transform: translateY(-4px); box-shadow: 0 15px 35px -5px rgba(15, 29, 74, 0.6); color:#fff;
}
.btn-outline {
    background: transparent; color: var(--clr-navy);
    border: 2px solid var(--clr-navy);
}
.btn-outline:hover {
    background: var(--clr-navy); color: var(--clr-text-white);
    transform: translateY(-4px); box-shadow: var(--shadow-hover);
}
.btn-gold {
    background: linear-gradient(135deg, var(--clr-gold), #b89327); color: #fff;
    box-shadow: var(--glow-gold); text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.btn-gold:hover {
    transform: translateY(-4px); box-shadow: 0 0 30px rgba(212, 175, 55, 0.6); color: #fff;
}

/* White/Navy Header — scrolls with page (not pinned to viewport) */
#header.header,
header.header {
    position: relative;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(15, 29, 74, 0.06);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.header.scrolled {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: var(--shadow-soft);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 100%; gap: 12px; }

/* Logo sizing — slim compact nav */
.logo img { height: 28px; width: auto; max-width: 132px; object-fit: contain; transition: var(--transition-smooth); }
.header.scrolled .logo img { height: 28px; width: auto; max-width: 132px; object-fit: contain; }

/* Right Aligned Nav */
.navbar { margin-left: auto; flex: 1; display: flex; justify-content: flex-end; align-self: stretch; min-width: 0; height: 100%; }
.nav-menu {
    display: flex;
    gap: clamp(12px, 1.15vw, 22px);
    align-items: stretch;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}
.nav-menu > li { flex-shrink: 0; display: flex; align-items: stretch; }
.nav-link { 
    font-size: clamp(0.8rem, 0.88vw, 0.88rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px; 
    color: var(--clr-navy-light);
    padding: 0 0.48rem;
    position: relative;
    transition: var(--transition-fast);
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}
.nav-chevron { font-size: 0.72rem; margin-left: 4px; vertical-align: middle; }
.nav-link:hover { color: var(--clr-gold); }
.nav-link.active { color: var(--clr-navy); }
.nav-link::before {
    content: ''; position: absolute; bottom: 10px; left: 50%; width: 0; height: 2px;
    background: var(--clr-gold);
    transition: var(--transition-smooth); transform: translateX(-50%);
    pointer-events: none;
}
.nav-link:hover::before { width: calc(100% - 0.96rem); }
.nav-link.active::before { width: 0; }
.nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0.35rem;
    right: 0.35rem;
    height: 3px;
    background: #0752FF;
    opacity: 0;
    pointer-events: none;
}
.nav-link.active::after { opacity: 1; }
.nav-link:focus-visible {
    outline: 2px solid var(--clr-navy);
    outline-offset: 4px;
    border-radius: 3px;
}

/* Nav Dropdown */
.nav-item-dropdown { position: relative; }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid rgba(15,29,74,0.1);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(15,29,74,0.14);
    overflow: visible;
    min-width: 260px;
    z-index: 250;
    padding: 8px 0;
}
/* Invisible bridge so cursor can move from link → menu without closing */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
}
.nav-item-dropdown:hover > .nav-dropdown-menu,
.nav-item-dropdown:focus-within > .nav-dropdown-menu {
    display: block;
    animation: fadeInDown 0.2s ease;
}
.nav-dropdown-menu > a,
.nav-dropdown-menu .nav-nested-trigger {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; padding: 11px 18px; font-size: 0.9rem; font-weight: 600;
    color: var(--clr-navy); transition: background 0.15s, color 0.15s;
    text-transform: none; letter-spacing: normal; text-align: left;
    background: none; border: none; cursor: pointer; font-family: inherit;
    text-decoration: none;
}
.nav-dropdown-menu > a:hover,
.nav-dropdown-menu .nav-nested-trigger:hover { background: rgba(212,175,55,0.07); color: var(--clr-gold); }
.nav-dropdown-overview {
    border-bottom: 1px solid rgba(15,29,74,0.06);
    margin-bottom: 4px;
    padding-bottom: 12px !important;
}
.nav-dropdown-nested { position: relative; }
.nav-nested-chevron { font-size: 0.65rem; opacity: 0.55; transition: transform 0.2s; }
.nav-dropdown-submenu {
    display: none;
    position: absolute;
    top: -8px;
    left: calc(100% - 2px);
    min-width: 260px;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(15,29,74,0.1);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(15,29,74,0.14);
    padding: 8px 0;
    z-index: 260;
}
.nav-dropdown-submenu::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -14px;
    width: 14px;
}
.nav-dropdown-nested:hover > .nav-dropdown-submenu,
.nav-dropdown-nested:focus-within > .nav-dropdown-submenu,
.nav-dropdown-nested.open > .nav-dropdown-submenu { display: block; }
.nav-dropdown-nested:hover > .nav-nested-trigger .nav-nested-chevron,
.nav-dropdown-nested.open > .nav-nested-trigger .nav-nested-chevron { transform: rotate(90deg); }
.nav-dropdown-submenu a {
    display: block; padding: 10px 18px; font-size: 0.86rem; font-weight: 600;
    color: var(--clr-navy); transition: background 0.15s, color 0.15s;
    text-decoration: none;
}
.nav-dropdown-submenu a:hover { background: rgba(212,175,55,0.07); color: var(--clr-gold); }


/* Language Selector */
.lang-selector { position: relative; }
.lang-btn {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
    color: var(--clr-navy-light); background: none; border: 1.5px solid rgba(15,29,74,0.15);
    border-radius: 6px; padding: 4px 8px; cursor: pointer; transition: var(--transition-fast);
    white-space: nowrap; flex-shrink: 0;
}
.lang-btn:hover { border-color: var(--clr-gold); color: var(--clr-gold); }
.lang-btn .lang-arrow { font-size: 0.6rem; transition: transform 0.2s; }
.lang-selector.open .lang-arrow { transform: rotate(180deg); }
.lang-dropdown {
    display: none; position: absolute; top: calc(100% + 10px); right: 0;
    background: #fff; border: 1px solid rgba(15,29,74,0.1);
    border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    overflow: hidden; min-width: 150px; z-index: 200;
}
.lang-selector.open .lang-dropdown { display: block; animation: fadeInDown 0.2s ease; }
@keyframes fadeInDown { from { opacity:0; transform: translateY(-8px); } to { opacity:1; transform: translateY(0); } }
.lang-option {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; cursor: pointer; font-size: 0.85rem; font-weight: 600;
    color: var(--clr-navy); transition: background 0.15s;
    text-decoration: none;
}
a.lang-option { color: inherit; }
.lang-option:hover { background: rgba(212,175,55,0.08); color: var(--clr-gold); }
.lang-option.active { background: rgba(212,175,55,0.1); color: var(--clr-gold); font-weight: 700; }
.lang-flag { font-size: 1.1rem; }

.hamburger {
    display: none; cursor: pointer; flex-direction: column; gap: 6px;
    background: none; border: none; padding: 8px; margin: 0; flex-shrink: 0;
    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}
.hamburger .bar { width: 26px; height: 2px; background-color: var(--clr-navy); transition: 0.3s; display: block; }

/* EN/AR fallback for no-JS. Lives in <noscript> after </header>, so it is
   not present when JavaScript is on and is not trapped in .lang-dropdown
   or the off-canvas .nav-menu. Keep in sync with gn-chrome.css. */
.pb-lang-noscript {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: #ffffff;
    color: var(--clr-navy);
    border-bottom: 1px solid rgba(15, 29, 74, 0.08);
    padding: 8px 16px;
}
.pb-lang-noscript-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    max-width: 100%;
}
.pb-lang-noscript-label {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--clr-navy-light);
}
.pb-lang-noscript-list {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.pb-lang-noscript-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    min-width: 44px;
    padding: 8px 16px;
    border: 1.5px solid rgba(15, 29, 74, 0.15);
    border-radius: 8px;
    color: var(--clr-navy);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.pb-lang-noscript-list a[aria-current="page"] {
    border-color: var(--clr-gold);
    color: var(--clr-gold);
    font-weight: 700;
}
.pb-lang-noscript-list a:focus-visible {
    outline: 2px solid var(--clr-gold);
    outline-offset: 3px;
}
html[dir="rtl"] .pb-lang-noscript { text-align: right; }

.nav-backdrop { display: none; }
.nav-menu > li.nav-drawer-chrome { display: none; }

/* Tablet / crowded nav — switch to mobile menu earlier */
@media (max-width: 1100px) {
    .hamburger { display: flex; z-index: 1002; }
    .navbar { margin-left: 0; flex: 0; }
    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1090;
        background: rgba(4, 12, 36, 0.58);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
    }
    .nav-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: min(100%, 22.5rem);
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        background-color: #0b2248;
        background-image:
            linear-gradient(180deg, rgba(103, 232, 249, 0.12), transparent 18%),
            linear-gradient(180deg, #12305f 0%, #0b2248 48%, #071433 100%);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 0;
        padding: env(safe-area-inset-top, 0px) 0 calc(1.25rem + env(safe-area-inset-bottom, 0px));
        transition: left 0.32s ease;
        z-index: 1101;
        box-shadow: 12px 0 40px rgba(4, 12, 36, 0.38);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        color: #e8f6ff;
    }
    .nav-menu.active { left: 0; }
    .nav-menu > li.nav-drawer-chrome {
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(212, 175, 55, 0.28);
        flex-shrink: 0;
    }
    .nav-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.85rem 1rem 0.85rem 1.05rem;
    }
    .nav-drawer-logo {
        display: inline-flex;
        align-items: center;
        background: #fff;
        border-radius: 10px;
        padding: 6px 10px;
        min-height: 44px;
        box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35);
    }
    .nav-drawer-logo img {
        height: 28px;
        width: auto;
        max-width: 132px;
        object-fit: contain;
    }
    .nav-drawer-tools {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        flex-shrink: 0;
    }
    .nav-drawer-lang {
        display: inline-flex;
        align-items: stretch;
        border: 1px solid rgba(103, 232, 249, 0.45);
        border-radius: 999px;
        overflow: hidden;
        background: rgba(7, 20, 51, 0.45);
    }
    .nav-drawer-lang-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 36px;
        padding: 0 0.7rem;
        color: #d7eeff;
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-decoration: none;
    }
    .nav-drawer-lang-link.is-active {
        background: rgba(212, 175, 55, 0.22);
        color: #f5d76e;
    }
    .nav-drawer-close {
        width: 44px;
        height: 44px;
        border: 1px solid rgba(103, 232, 249, 0.35);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.06);
        color: #fff;
        font-size: 1.6rem;
        line-height: 1;
        cursor: pointer;
    }
    .nav-menu > li { width: 100%; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
    .nav-menu > li:last-child { border-bottom: none; }
    .nav-menu > li > .nav-link,
    body.has-site-header .nav-menu > li > .nav-link,
    #header .nav-menu > li > .nav-link,
    #header.header.is-gold .nav-menu > li > .nav-link {
        display: flex;
        align-items: center;
        height: auto;
        min-height: 48px;
        width: 100%;
        padding: 0.9rem 1.15rem;
        font-size: 0.95rem;
        letter-spacing: 0.06em;
        color: #e8f6ff;
        white-space: normal;
    }
    .nav-menu > li > .nav-link:hover,
    #header.header.is-gold .nav-menu > li > .nav-link:hover {
        color: #f5d76e;
        background: rgba(255, 255, 255, 0.05);
    }
    .nav-menu > li > .nav-link.active,
    #header.header.is-gold .nav-menu > li > .nav-link.active {
        color: #f5d76e;
        background: rgba(212, 175, 55, 0.12);
        font-weight: 800;
    }
    .nav-item-dropdown .nav-dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        min-width: 0;
        padding: 0 0 8px 12px;
        background: transparent;
        overflow: visible;
    }
    .nav-item-dropdown.open > .nav-dropdown-menu { display: block; animation: none; }
    .nav-item-dropdown:hover > .nav-dropdown-menu { display: none; }
    .nav-item-dropdown.open:hover > .nav-dropdown-menu { display: block; }
    .nav-dropdown-menu > a,
    .nav-dropdown-menu .nav-nested-trigger { padding: 10px 0; font-size: 0.88rem; }
    .nav-dropdown-submenu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        min-width: 0;
        max-height: none;
        padding: 0 0 6px 14px;
        background: transparent;
    }
    .nav-dropdown-nested.open > .nav-dropdown-submenu { display: block; }
    .nav-dropdown-nested:hover > .nav-dropdown-submenu { display: none; }
    .nav-dropdown-nested.open:hover > .nav-dropdown-submenu { display: block; }
    .nav-dropdown-submenu a { padding: 8px 0; font-size: 0.84rem; }
    .lang-selector { margin-top: 0.5rem; }
    html.nav-open .header .lang-selector {
        visibility: hidden;
        pointer-events: none;
    }
    html.nav-open .pbz-wc,
    html.nav-open .pbz-wc-launcher,
    html.nav-open .pbz-wc-wa,
    html.nav-open .pbz-wc-nudge,
    html.nav-open .pbz-wc-panel {
        z-index: 20 !important;
    }
    html.nav-open .pbz-wc-launcher,
    html.nav-open .pbz-wc-wa,
    html.nav-open .pbz-wc-nudge {
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    .lang-dropdown { right: auto; left: 0; }
    html[dir="rtl"] .nav-menu {
        left: auto;
        right: -100%;
        box-shadow: -12px 0 40px rgba(4, 12, 36, 0.38);
        transition: right 0.32s ease;
    }
    html[dir="rtl"] .nav-menu.active {
        left: auto;
        right: 0;
    }
    html.nav-open,
    html.nav-open body {
        overflow: hidden;
        overscroll-behavior: none;
    }
    html.nav-open #header.header,
    html.nav-open header.header {
        z-index: 1102;
        overflow: visible;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        transform: none;
        filter: none;
    }
    html.nav-open #header.header.is-gold .nav-container {
        z-index: auto;
        transform: none;
        filter: none;
    }
    @media (max-width: 430px) {
        .nav-menu {
            width: 100%;
        }
    }
    #header.header.is-gold .nav-menu > li > .nav-link::before {
        display: none;
    }
    #header.header.is-gold .nav-menu > li > .nav-link::after {
        background: #22d3ee;
        width: 0;
        height: auto;
        top: 0.55rem;
        bottom: 0.55rem;
        left: 0;
        right: auto;
    }
    #header.header.is-gold .nav-menu > li > .nav-link.active::after {
        width: 3px;
    }
}

@media (max-width: 768px) {
    .header { height: 58px; }
    .contact-grid, .footer-grid { grid-template-columns: 1fr; }
}
.hero-glamour {
    /* Stay proportional to the viewport so short laptop screens (1366x768) don't get
       a hero that fills the fold; the cap keeps it from ballooning on tall monitors. */
    position: relative; min-height: clamp(520px, 76vh, 720px); padding: 3.5rem 0;
    display: flex; align-items: center; justify-content: center;
    background-color: var(--clr-navy-dark);
    overflow: hidden;
}

/* Home Hero Custom Image Background */
.home-hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.45;
}

/* Standardized Subpage Hero */
.subpage-hero {
    padding: 128px 0 92px; position: relative; overflow: hidden;
    background-color: var(--clr-navy-dark);
}
.subpage-hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.5;
}
.subpage-hero::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(160deg, rgba(5,9,24,0.55) 0%, rgba(5,9,24,0.72) 55%, rgba(15,29,74,0.90) 100%);
    pointer-events: none;
}
/* CRITICAL: ensure every hero content container is above the overlay */
.subpage-hero .container,
.subpage-hero > .container {
    position: relative;
    z-index: 2;
}
.subpage-hero h1,
.subpage-hero .section-title,
.subpage-hero p,
.subpage-hero .hero-badge-glam {
    position: relative;
    z-index: 2;
    text-shadow: 0 3px 20px rgba(0,0,0,0.8), 0 1px 6px rgba(0,0,0,0.6);
    -webkit-font-smoothing: antialiased;
}


/* The Matrix Aurora Background */
/* The glow is oversized (inset:-50%) and rotates/scales, so every host must clip it
   or it forces page-level horizontal scroll. clip (not hidden) avoids creating a
   scroll container that would break sticky descendants. */
section:has(> .aurora-bg),
.hero-glamour,
.subpage-hero {
    overflow-x: clip;
}
.aurora-bg {
    position: absolute; inset: -50%; z-index: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(76, 29, 149, 0.5), transparent 45%),
        radial-gradient(circle at 70% 30%, rgba(15, 29, 74, 0.8), transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.15), transparent 60%),
        radial-gradient(circle at 10% 20%, rgba(15, 118, 110, 0.4), transparent 40%);
    filter: blur(60px); opacity: 0.8;
    animation: aurora-shift 25s infinite alternate ease-in-out;
}
@keyframes aurora-shift {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(20deg) scale(1.15); }
}

/* Elegant Sparkle Overlay */
.sparkle-overlay {
    position: absolute; inset: 0; z-index: 1;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.3)"/></svg>');
    background-size: 60px 60px;
    animation: moveSparkles 60s linear infinite;
    opacity: 0.5;
}
@keyframes moveSparkles {
    from { background-position: 0 0; }
    to { background-position: -600px 600px; }
}

.hero-glass-panel {
    position: relative; z-index: 10;
    background: rgba(15, 29, 74, 0.4);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 56px 52px;
    max-width: 1060px; width: 90%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateY(20px);
    animation: heroFloatIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes heroFloatIn {
    to { transform: translateY(0); opacity: 1; }
}

.hero-glass-panel h1 {
    font-size: 5.5rem; line-height: 1.1; margin-bottom: 30px; letter-spacing: -2px; color: #fff;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.hero-badge-glam {
    display: inline-block; padding: 9px 22px; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2.6px;
    background: linear-gradient(90deg, rgba(212,175,55,0.1), rgba(212,175,55,0.0));
    border-left: 2px solid var(--clr-gold);
    color: var(--clr-gold); margin-bottom: 22px;
}

/* WhatsApp Floating Icon */
.whatsapp-float {
    position: fixed;
    width: 65px; height: 65px;
    bottom: 30px; left: 30px; /* Specific request bottom left */
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #FFF; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; z-index: 9999;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: var(--transition-smooth);
    animation: float-pulse 2.5s infinite;
}
.whatsapp-float:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}
@keyframes float-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-float i { margin: 0; padding: 0; line-height: 1; display:flex; margin-left: 2px; margin-top: -2px; }

/* Enhanced Corporate Cards */
.services-grid-9 {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
    position: relative; z-index: 20; padding-bottom: 120px;
}
.services-grid-10 {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px;
}
.services-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 20;
}
.corp-card {
    background: var(--clr-bg);
    border: 1px solid rgba(15, 29, 74, 0.05); border-radius: var(--border-radius-lg);
    padding: 40px 34px; transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    position: relative; overflow: hidden;
    z-index: 1;
}
/* Shimmer border effect on hover */
.corp-card::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(135deg, transparent, rgba(212, 175, 55, 0.05), transparent);
    opacity: 0; transition: var(--transition-smooth);
}
.corp-card:hover { 
    transform: translateY(-10px); box-shadow: var(--shadow-hover); 
    border-color: rgba(212, 175, 55, 0.3); 
}
.corp-card:hover::before { opacity: 1; }
.corp-card i { font-size: 2.5rem; color: var(--clr-primary); margin-bottom: 24px; display: inline-block; transition: 0.3s; }
.corp-card:hover i { transform: scale(1.15); color: var(--clr-gold); }
.corp-card h3 { font-size: 1.6rem; margin-bottom: 16px; color: var(--clr-navy); letter-spacing: -0.5px; }
.corp-card p { font-size: 1.05rem; margin-bottom: 0; color: var(--clr-text-muted); line-height: 1.8; }

/* Sub-page Advanced Layouts (Corporate Splits) */
.feature-split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 120px 0;
}
.feature-split.reversed { direction: rtl; }
.feature-split.reversed > * { direction: ltr; }
.feature-img-box {
    position: relative; border-radius: var(--border-radius-lg); overflow: hidden;
    box-shadow: var(--shadow-deep);
}
/* Glamorous Frame for images */
.feature-img-box::before {
    content: ''; position: absolute; inset: -1px; z-index: 2;
    border: 1px solid rgba(255,255,255,0.4); border-radius: var(--border-radius-lg);
    pointer-events: none;
}
.feature-img-box::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, transparent 50%, rgba(15,29,74,0.4) 100%);
    pointer-events: none;
}
.feature-img-box img { width: 100%; height: auto; object-fit: cover; transition: transform 0.8s ease; display: block; }
.feature-img-box:hover img { transform: scale(1.05); }

/* Career/About Floating Detail Cards */
.floating-metrics { display: flex; gap: 20px; margin-top: 40px; }
.metric-card {
    background: var(--clr-bg); border: 1px solid rgba(212,175,55,0.2);
    padding: 30px; border-radius: var(--border-radius-lg); flex: 1;
    text-align: center; box-shadow: var(--shadow-soft); position:relative; overflow:hidden;
}
.metric-card::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:4px;
    background: linear-gradient(90deg, var(--clr-gold), var(--clr-gold-light));
}
.metric-card h4 { font-size: 3rem; color: var(--clr-navy); margin-bottom: 8px; font-weight: 800; }

/* Partnership Nodes - Glamour Corporate Timeline */
.partner-path { position: relative; padding: 100px 0; }
.partner-path::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, var(--clr-surface), rgba(15,29,74,0.1), var(--clr-surface));
    transform: translateX(-50%);
}
.partner-step {
    display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 120px; position: relative;
}
.partner-step:nth-child(even) { flex-direction: row-reverse; }
.partner-info { width: 42%; background: var(--clr-bg); border: 1px solid rgba(15,29,74,0.05); padding: 50px; border-radius: var(--border-radius-lg); box-shadow: var(--shadow-deep); transition:var(--transition-smooth);}
.partner-info:hover { transform: translateY(-5px); border-color: rgba(212,175,55,0.3); }
.partner-info h3 { font-size: 2.2rem; margin-bottom: 20px; color: var(--clr-navy); letter-spacing: -0.5px;}
.partner-logo-display {
    width: 42%; display: flex; justify-content: center; align-items: center;
    background: #fff; padding: 60px; border-radius: 50%; aspect-ratio: 1; box-shadow: var(--shadow-soft); border: 4px solid var(--clr-surface);
}
.partner-logo-display img { max-width: 60%; max-height: 60%; object-fit: contain; filter: grayscale(100%) opacity(0.8); transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.partner-step:hover .partner-logo-display img { filter: grayscale(0%) opacity(1); transform: scale(1.15); }
.path-node {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 28px; height: 28px; background: var(--clr-bg); border: 6px solid var(--clr-navy); border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(15, 29, 74, 0.05); z-index: 2; transition: 0.4s;
}
.partner-step:hover .path-node { background: var(--clr-gold); border-color: var(--clr-navy); transform: translate(-50%, -50%) scale(1.3); box-shadow: 0 0 20px rgba(212,175,55,0.4); }

/* Contact Form - Corporate Clean */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; padding: 80px 0; align-items: start; }
.contact-form {
    background: #fff; border: 1px solid rgba(15,29,74,0.05); padding: 50px; border-radius: var(--border-radius-lg); box-shadow: var(--shadow-deep);
}
.form-group { margin-bottom: 24px; position: relative; }
.form-group label { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--clr-text-muted); margin-bottom: 8px; font-weight: 700; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 18px 24px; background: var(--clr-surface); border: 1px solid rgba(15,29,74,0.1);
    border-radius: var(--border-radius-sm); color: var(--clr-text-main); font-family: inherit; font-size: 1rem; transition: var(--transition-fast);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--clr-primary); background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.map-wrap { border-radius: var(--border-radius-lg); overflow: hidden; height: 600px; border: 1px solid rgba(15,29,74,0.05); box-shadow: var(--shadow-soft); }

/* Flex aligned command directives */
.command-directive {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}
.command-directive i {
    color: var(--clr-primary);
    font-size: 1.5rem;
    margin-top: 3px;
    width: 30px;
}

/* Footer */
.footer {
    background: var(--clr-navy-dark); padding: 100px 0 40px; position: relative; color: var(--clr-text-white-muted);
    border-top: 5px solid var(--clr-gold); margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 60px; margin-bottom: 60px; }
.footer-logo img { height: 65px; width: auto; max-width: 250px; object-fit: contain; margin-bottom: 30px; }
.footer h4 { color: #fff; font-size: 1.15rem; margin-bottom: 24px; letter-spacing: 1px; }
.footer ul { display: grid; gap: 14px; }
.footer a { color: var(--clr-text-white-muted); }
.footer a:hover { color: var(--clr-gold); }
.social-links { display: flex; gap: 15px; margin-top: 30px; }
.social-links a,
.social-links .social-icon {
    width: 45px; height: 45px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05); border-radius: 50%; transition: 0.3s;
}
.social-links a:hover { background: var(--clr-gold); color: var(--clr-navy); transform: translateY(-5px); }

/* Animation Classes */
.reveal { opacity: 1; transform: translateY(0); transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.animate-ready { opacity: 0; transform: translateY(50px) scale(0.96); }
.reveal.animate-ready.active { opacity: 1; transform: translateY(0) scale(1); }
.fade-in { opacity: 1; transition: 1.5s ease; }
.fade-in.animate-ready { opacity: 0; }
.fade-in.animate-ready.active { opacity: 1; }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

/* Continuous Breathtaking Animations */
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.float-anim {
    animation: floatY 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.15); }
    50% { box-shadow: 0 0 45px rgba(212, 175, 55, 0.5); }
}
.pulse-anim {
    animation: pulseGlow 4s ease-in-out infinite;
    border-radius: 50%;
}

@keyframes shimmyBg {
    0% { background-position: left center; }
    100% { background-position: right center; }
}
.shimmy-bg {
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: shimmyBg 3s linear infinite;
}

/* Beautiful Partnership Cards Redesign */
.partners-grid {
    display: flex; flex-direction: column; gap: 80px; padding: 100px 0;
}
.partner-power-card {
    display: flex; background: #fff;
    border-radius: 24px; box-shadow: 0 25px 60px rgba(15, 29, 74, 0.08);
    overflow: hidden; border: 1px solid rgba(15, 29, 74, 0.04);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.partner-power-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 40px 80px rgba(15, 29, 74, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
}
.partner-visual {
    flex: 1; min-width: 350px; background: var(--clr-surface);
    display: flex; align-items: center; justify-content: center;
    position: relative; padding: 60px;
}
.partner-visual::after {
    content: ''; position: absolute; top:0; right:0; bottom:0; width: 1px;
    background: linear-gradient(180deg, transparent, rgba(15,29,74,0.1), transparent);
}
.partner-visual img {
    max-width: 80%; max-height: 200px;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.05));
    transition: transform 0.6s ease;
}
.partner-power-card:hover .partner-visual img {
    transform: scale(1.1);
}
.partner-content {
    flex: 1.5; padding: 60px 80px; display: flex; flex-direction: column; justify-content: center;
}
.partner-content h2 { font-size: 2.6rem; color: var(--clr-navy); margin-bottom: 20px; }
.partner-content p { font-size: 1.15rem; color: var(--clr-text-muted); line-height: 1.8; margin-bottom: 0; }
.partner-power-card.reversed { flex-direction: row-reverse; }
.partner-power-card.reversed .partner-visual::after { right: auto; left: 0; }

/* Responsive adjustments */
@media (max-width: 1200px) {
    .services-grid-9,
    .services-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .services-grid-10 { grid-template-columns: 1fr; }
    .hero-glass-panel h1 { font-size: 4rem; }
    .feature-split { grid-template-columns: 1fr; gap: 40px; }
    .partner-step, .partner-step:nth-child(even) { flex-direction: column; text-align: center; }
    .partner-path::before, .path-node { display: none; }
    .partner-info, .partner-logo-display { width: 100%; margin-bottom: 20px; }
    .partner-logo-display { border-radius: var(--border-radius-sm); height: 300px; aspect-ratio: auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767.98px) {
    .services-grid-9,
    .services-grid-10 { grid-template-columns: 1fr; }
    .services-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* HERO GLAMOUR - Astonishing Artistic Corporate Entry */

/* Site footer (synced from premium-numbers.css) */
.footer.site-footer {
    background: var(--clr-navy-dark);
    padding: 5rem 0 2.5rem;
    color: rgba(255,255,255,0.75);
    border-top: 5px solid var(--clr-gold);
    margin-top: 0;
}
.footer.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer.site-footer .footer-logo img {
    height: 48px; width: auto; object-fit: contain;
    margin-bottom: 1.25rem;
    filter: brightness(0) invert(1);
}
.footer.site-footer p { font-size: 0.95rem; line-height: 1.7; color: rgba(255,255,255,0.7); margin-bottom: 0; }
.footer.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.25rem; letter-spacing: 0.04em; }
.footer.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.footer.site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.footer.site-footer a:hover { color: var(--clr-gold); }
.footer.site-footer .social-links { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.footer.site-footer .social-links a,
.footer.site-footer .social-links .social-icon {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    font-size: 1rem;
}
.footer.site-footer .social-links a:hover { background: var(--clr-gold); color: var(--clr-navy); transform: translateY(-3px); }
.footer-copy { padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.08); text-align: center; }
.footer-copy p { font-size: 0.85rem; color: rgba(255,255,255,0.4); margin: 0; }
@media (max-width: 992px) {
    .footer.site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
    .footer.site-footer .footer-grid { grid-template-columns: 1fr; }
}

/* RTL — Arabic alignment */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .nav-container,
html[dir="rtl"] .navbar,
html[dir="rtl"] .nav-menu { direction: rtl; }
html[dir="rtl"] .navbar { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .nav-link::before { left: auto; right: 50%; transform: translateX(50%); }
html[dir="rtl"] .nav-dropdown-menu { left: auto; right: 0; text-align: right; }
html[dir="rtl"] .nav-dropdown-submenu { left: auto; right: calc(100% - 4px); }
html[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
html[dir="rtl"] .footer.site-footer,
html[dir="rtl"] .footer.site-footer ul,
html[dir="rtl"] .footer-col { text-align: right; }
html[dir="rtl"] .footer.site-footer a i,
html[dir="rtl"] .footer.site-footer a .fa-solid,
html[dir="rtl"] .footer.site-footer a .fa-brands {
    margin-right: 0 !important;
    margin-left: 8px;
}
html[dir="rtl"] .feature-split,
html[dir="rtl"] .contact-grid,
html[dir="rtl"] .footer-grid { direction: rtl; }
html[dir="rtl"] .section-title,
html[dir="rtl"] .hero-glass-panel,
html[dir="rtl"] .subpage-hero .container { text-align: right; }
html[dir="rtl"] .hamburger { margin-left: 0; margin-right: auto; }

/* Page alignment consistency */
.subpage-hero { padding-top: 120px; }
.subpage-hero .container { position: relative; z-index: 2; }
section .container img { max-width: 100%; height: auto; }
.reveal { will-change: opacity, transform; }

/* Medical billing shared layout polish */
body.bg-surface section[style*="padding"] .container {
    max-width: var(--max-width);
}

/* ============================================================
   Shared responsive system — r40
   Fixes phone layouts without changing desktop composition.
   ============================================================ */

.services-grid-9,
.services-grid-10,
.services-grid-4,
.corp-card,
.bento-item,
.feature-split,
.partner-power-card,
.contact-grid {
    min-width: 0;
}

.corp-card h3,
.corp-card p,
.bento-item h3,
.bento-item p {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: manual;
}

.table-responsive,
.pb-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991.98px) {
    .hero-glamour {
        min-height: auto;
        padding: calc(var(--header-height) + 2.5rem) 0 3.5rem;
    }
    .hero-glass-panel {
        width: min(100% - 2rem, 920px);
        padding: 2.75rem 1.75rem;
        border-radius: 22px;
    }
    .hero-glass-panel h1 {
        font-size: clamp(2.15rem, 6vw, 3.4rem);
        letter-spacing: -1px;
        margin-bottom: 1.1rem;
    }
    .subpage-hero {
        padding: 5.5rem 0 3.5rem;
    }
    .section-title {
        font-size: clamp(1.85rem, 5vw, 2.6rem);
    }
    .section-subtitle {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }
    .home-hero-bg,
    .subpage-hero-bg {
        background-attachment: scroll;
    }
    .aurora-bg {
        inset: 0;
        animation: none;
        width: 100%;
        height: 100%;
    }
}

/* Partnerships: clip the oversized aurora to the content section only.
   Do not clip cards, shadows, focus rings, footer or mobile nav. */
.partnerships-partners {
    position: relative;
}
.partnerships-aurora {
    position: absolute;
    inset: 0;
    overflow: clip;
    pointer-events: none;
    z-index: 0;
    contain: paint;
}
.partnerships-aurora .aurora-bg {
    z-index: 0;
}
.partnerships-partners > .container {
    position: relative;
    z-index: 1;
}

.social-links a.social-icon {
    color: #ffffff;
    text-decoration: none;
}
.social-links a.social-icon svg {
    display: block;
    flex-shrink: 0;
}
.social-links a.social-icon:focus,
.social-links a.social-icon:focus-visible,
.footer.site-footer .social-links a.social-icon:focus,
.footer.site-footer .social-links a.social-icon:focus-visible {
    outline: 2px solid #FCE181;
    outline-offset: 3px;
}

@media (max-width: 767.98px) {
    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    /* Bootstrap rows pull negative side margins of half the gutter. Wide gutters
       (g-4/g-5 = 24px/48px) exceed the 18px mobile container padding and push the
       page into horizontal scroll, so cap the gutter to fit inside that padding. */
    .container .row {
        --bs-gutter-x: 2rem;
    }

    .section-padding {
        padding: 3.75rem 0;
    }

    section.container[style*="padding"],
    .container[style*="padding"]:not(.nav-container) {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    body > section[style*="padding"],
    main > section[style*="padding"] {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    .header .container,
    .nav-container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .hero-glamour {
        padding: 2.25rem 0 2.75rem;
    }
    .hero-glass-panel {
        width: calc(100% - 2rem);
        max-width: none;
        padding: 2rem 1.15rem;
        border-radius: 20px;
    }
    .hero-glass-panel h1,
    .subpage-hero h1,
    .subpage-hero .section-title,
    h1[style*="font-size"] {
        font-size: clamp(1.85rem, 8.2vw, 2.35rem) !important;
        line-height: 1.15 !important;
        letter-spacing: -0.5px;
        margin-bottom: 0.85rem !important;
    }
    .hero-glass-panel p,
    .subpage-hero p {
        font-size: 1rem !important;
        line-height: 1.65 !important;
        max-width: 36rem;
    }
    .hero-badge-glam {
        font-size: 0.72rem;
        letter-spacing: 1.6px;
        padding: 8px 16px;
        margin-bottom: 1rem;
    }
    .btn {
        padding: 14px 22px;
        font-size: 0.85rem;
        letter-spacing: 1px;
        min-height: 46px;
    }

    .section-title,
    h2.section-title,
    h2[style*="font-size"] {
        font-size: clamp(1.65rem, 7vw, 2.15rem) !important;
        margin-bottom: 0.85rem;
    }
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 1.75rem;
        max-width: none;
    }
    p {
        font-size: 1rem;
    }

    .services-grid-9,
    .services-grid-10 {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        padding-bottom: 2.5rem;
    }
    .services-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }
    .corp-card {
        width: 100%;
        padding: 1.5rem 1.2rem;
    }
    .corp-card i {
        font-size: 1.85rem;
        margin-bottom: 0.85rem;
    }
    .corp-card h3,
    .corp-card h3[style*="font-size"] {
        font-size: 1.2rem !important;
        line-height: 1.3;
        margin-bottom: 0.65rem;
    }
    .corp-card p {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .bento-grid,
    .lab-bento,
    .scribe-bento {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    .bento-12,
    .bento-8,
    .bento-6,
    .bento-4,
    .lb-full,
    .lb-half,
    .lb-third {
        grid-column: 1 / -1 !important;
    }
    .bento-item {
        padding: 1.4rem 1.15rem;
    }

    .feature-split,
    .feature-split.reversed,
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 1.75rem;
        padding: 2.5rem 0;
    }
    .floating-metrics {
        flex-direction: column;
    }
    .metric-card h4,
    .metric-value {
        font-size: 2.2rem;
    }
    .process-step-premium,
    .process-step-premium:nth-child(even) {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2.5rem;
    }
    .process-number-glam { font-size: 4.5rem; }

    .partner-power-card,
    .partner-power-card.reversed {
        flex-direction: column;
    }
    .partner-visual {
        min-width: 0;
        width: 100%;
        padding: 2rem 1.25rem;
    }
    .partner-content {
        padding: 1.5rem 1.25rem;
    }
    .partner-content h2 { font-size: 1.7rem; }
    .partners-grid { gap: 1.5rem; padding: 2.5rem 0; }
    .partner-logo-display { height: auto; padding: 2rem; }

    .contact-form { padding: 1.5rem 1.15rem; }
    .map-wrap { height: 280px; }

    .footer { padding: 3.5rem 0 5.75rem; }
    .footer-grid,
    .footer.site-footer .footer-grid { grid-template-columns: 1fr !important; gap: 2rem; }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 16px;
        left: 16px;
        font-size: 1.65rem;
    }

    /* Stack common desktop 2/3/4-column inline grids used across pages */
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr 1fr"],
    [style*="grid-template-columns: repeat(2"],
    [style*="grid-template-columns:repeat(2"],
    [style*="grid-template-columns: repeat(3"],
    [style*="grid-template-columns:repeat(3"],
    [style*="grid-template-columns: repeat(4"],
    [style*="grid-template-columns:repeat(4"],
    [style*="minmax(0, 1.2fr)"],
    [style*="grid-template-columns: 1.2fr 1fr"],
    [style*="grid-template-columns:1.2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .services-hub-grid,
    .why-grid,
    .spec-grid,
    .rule-grid,
    .dmaic-grid,
    .qb-grid,
    .hl7-bento,
    .i-list,
    .payer-grid,
    .ccm-bento,
    .req-grid,
    .roles-grid,
    .denial-types,
    .strategy-grid,
    .ar-buckets,
    .recovery-steps,
    .cs-stats,
    .billing-types,
    .compliance-items,
    .rpm-steps,
    .service-pillars,
    .outsource-grid,
    .code-types,
    .specialty-mosaic,
    .why-spec,
    .cs-grid,
    .shield-grid,
    .s-panel.active,
    .onboarding-grid,
    .doc-quality-grid,
    .hosp-intel-grid {
        grid-template-columns: 1fr !important;
    }

    html[dir="rtl"] .whatsapp-float {
        left: 16px;
        right: auto;
    }
}

@media (max-width: 429.98px) {
    .services-grid-4 {
        grid-template-columns: 1fr;
    }
    .hero-glass-panel {
        width: calc(100% - 1.5rem);
        padding: 1.65rem 1rem;
    }
}

/* Tablet: keep readable 2-up cards, never squeeze text columns */
@media (min-width: 768px) and (max-width: 991.98px) {
    .services-grid-9 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
    .corp-card { padding: 2rem 1.5rem; }
    .corp-card h3 { font-size: 1.35rem; }
}

/* ============================================================
   Design refinement — r41
   Hero rhythm, card alignment, button consistency, long-copy
   safety and reduced-motion support. Golden Numbers keeps its
   own system in assets/css/premium-numbers.css.
   ============================================================ */

/* --- Header → hero transition ------------------------------ */
.subpage-hero .container,
.hero-glamour .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.subpage-hero h1,
.subpage-hero .section-title {
    margin-bottom: 18px;
}
.subpage-hero p {
    max-width: 62ch;
}
.subpage-hero-bg,
.home-hero-bg {
    background-position: center 42%;
}

/* --- Cards share one geometry across a grid ----------------- */
.services-grid-9,
.services-grid-10,
.services-grid-4,
.partners-grid {
    align-items: stretch;
}
.corp-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.corp-card h3 {
    margin-bottom: 14px;
}
.corp-card p:last-child {
    margin-bottom: 0;
}
.corp-card i {
    margin-bottom: 18px;
}
.svc-more {
    display: inline-flex;
    align-items: center;
    margin-top: 16px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--clr-gold);
    text-decoration: none;
    letter-spacing: 0.02em;
}
.svc-more:hover,
.svc-more:focus-visible {
    color: var(--clr-navy);
}

/* --- Buttons: one shared geometry, clear focus -------------- */
.btn {
    min-height: 52px;
    line-height: 1.2;
    text-align: center;
}
.btn-lg {
    min-height: 58px;
}
.btn:focus-visible,
.nav-link:focus-visible,
.lang-option:focus-visible,
.whatsapp-float:focus-visible {
    outline: 3px solid var(--clr-gold);
    outline-offset: 3px;
}

/* --- Long translations (DE/FR/ES) must not break layout ----- */
.btn,
.nav-link,
.hero-badge-glam,
.corp-card h3,
.section-title,
.footer a {
    overflow-wrap: break-word;
}
.nav-menu > li > .nav-link {
    white-space: nowrap;
}
@media (max-width: 1100px) {
    .nav-menu > li > .nav-link {
        white-space: normal;
    }
}

/* --- Subtle motion ------------------------------------------ */
.corp-card,
.bento-item,
.metric-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease;
}
.corp-card i {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.corp-card:hover i {
    transform: translateY(-3px) scale(1.06);
}

/* --- Reduced motion ----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal,
    .fade-in,
    .reveal.animate-ready,
    .fade-in.animate-ready {
        opacity: 1 !important;
        transform: none !important;
    }
    .hero-glass-panel {
        animation: none;
        transform: none;
        opacity: 1;
    }
    .home-hero-bg,
    .subpage-hero-bg {
        background-attachment: scroll;
    }
}

/* Short laptop screens (1366x768 and similar) have plenty of width but little
   height, so the hero eats the whole fold. Trim its breathing room there only. */
@media (min-width: 992px) and (max-height: 820px) {
    .hero-glamour {
        min-height: 0;
        padding: 2.25rem 0;
    }
    .hero-glass-panel {
        padding: 38px 48px;
    }
    .subpage-hero {
        min-height: 0;
        padding: 5rem 0 3rem;
    }
}

/* --- Mobile hero rhythm ------------------------------------- */
@media (max-width: 991.98px) {
    .subpage-hero {
        padding: 88px 0 64px;
    }
    .hero-glamour {
        min-height: auto;
        padding: 3rem 0 3.5rem;
    }
}
@media (max-width: 767.98px) {
    .subpage-hero {
        padding: 64px 0 48px;
    }
    .section-padding {
        padding: 3.5rem 0;
    }
    .btn {
        min-height: 48px;
    }

    .table-scroll > table {
        min-width: 34rem;
    }
    .comparison-table th,
    .comparison-table td,
    .cpt-table th,
    .cpt-table td,
    .penalty-table th,
    .penalty-table td {
        padding: 14px 16px;
    }
}

/* Wide content tables scroll inside their own box instead of forcing the whole
   page into horizontal scroll. min-width:0 is what lets the wrapper shrink when
   it sits in a grid/flex track, whose default min-width:auto would otherwise
   stretch the track to the table's min-content width. */
.table-scroll {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* The medical-billing pages declare their two-column splits inline, so no
   class-based media query can reach them. !important is required to beat the
   inline declaration; this keeps them from staying side-by-side on tablets. */
@media (max-width: 991.98px) {
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 2.5rem !important;
    }
}

/* Each medical-billing hero pairs its copy with a decorative visual that reserves
   400-450px. Once stacked on a phone that roughly doubles the hero height without
   adding information the page doesn't already state below, so drop it there. */
/* Scoped under .subpage-hero so this outranks the per-page <style> blocks, which
   load after this file and set display:flex on the same class. */
@media (max-width: 575.98px) {
    .subpage-hero .ai-hero-graphics,
    .subpage-hero .bi-hero-graphics,
    .subpage-hero .shield-graphic,
    .subpage-hero .data-hero-visual,
    .subpage-hero .staff-hero-visual,
    .subpage-hero .six-sigma-visual,
    .subpage-hero .rpm-hero-visual,
    .subpage-hero .rpa-hero-visual {
        display: none;
    }
}
