/* =============================================
   PI PARTNERS — GLOBAL STYLESHEET v3
   Design: Dark Navy + Gold Premium Consulting
   Fonts: DM Sans + Cormorant Garamond
   Max Width: 1440px (expanded)
============================================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --navy-dark: #070e22;
    --navy-deep: #0c1535;
    --navy: #1a2b6d;
    --gold: #ca9e67;
    --gold-light: #d4b07e;
    --gold-dim: rgba(202, 158, 103, .12);
    --white: #fff;
    --off-white: #f0ede8;
    --text-muted: #ffffff;
    --text-faint: rgba(255, 255, 255, .7);
    --border-subtle: rgba(202, 158, 103, .08);
    --border-hover: rgba(202, 158, 103, .2);
    --card-bg: rgba(255, 255, 255, .018);
    --card-hover: rgba(202, 158, 103, .04);
    --transition: .4s cubic-bezier(.25, .46, .45, .94);
    --navy-alt: #081023;
    --max-w: 1440px;
    /* Base width */
}

/* Expand layout width on ultra-wide screens (e.g. 1080p, 4k LED monitors) */
@media (min-width: 1920px) {
    :root {
        --max-w: 1800px;
    }
}

@media (min-width: 2560px) {
    :root {
        --max-w: 2200px;
    }
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 120px;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--white);
    background: var(--navy-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased
}

a {
    text-decoration: none;
    color: inherit
}

img {
    max-width: 100%;
    display: block
}

ul {
    list-style: none
}

::selection {
    background: var(--gold);
    color: var(--navy-dark)
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999
}

::-webkit-scrollbar {
    width: 6px
}

::-webkit-scrollbar-track {
    background: var(--navy-dark)
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px
}

/* === CONTAINER === */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 60px
}

.hero-section .container {
    margin: 0;
}

@media (min-width: 1200px) {
    .hero-section .container {
        max-width: 850px !important;
        margin-left: 5% !important;
        margin-right: auto !important;
    }

    [lang="ar"] .hero-section .container {
        margin-left: auto !important;
        margin-right: 5% !important;
    }
}

@media(max-width:1200px) {
    .container {
        padding: 0 40px
    }
}

@media(max-width:768px) {
    .container {
        padding: 0 20px
    }
}

/* === TYPOGRAPHY === */
.section-label {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px
}

.section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--gold)
}

.section-label.centered {
    justify-content: center
}

.section-label.centered::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--gold)
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 500;
    line-height: 1.12;
    color: var(--white);
    margin-bottom: 18px
}

.section-title span {
    color: var(--gold)
}

.section-subtitle {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 620px;
    margin-bottom: 24px;
}

.body-text {
    font-size: .95rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 16px
}

.gold-line {
    width: 50px;
    height: 2px;
    background: var(--gold);
    margin: 24px 0
}

.sep {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(202, 158, 103, .15), transparent)
}

.text-center {
    text-align: center
}

.mx-auto {
    margin-left: auto;
    margin-right: auto
}

/* White Section Utility */
.bg-white {
    background-color: var(--white) !important;
}

.bg-white .section-title {
    color: var(--navy-dark);
}

.bg-white .body-text,
.bg-white .section-subtitle {
    color: #4a5568; /* Darker grey for white background */
}

.bg-white .glow-border {
    background: linear-gradient(var(--white), var(--white)) padding-box, 
                linear-gradient(90deg, var(--gold), transparent, var(--gold)) border-box;
}

.bg-white .svc-ah h4 {
    color: var(--navy-dark);
}

.bg-white .svc-ah {
    background: rgba(7, 14, 34, 0.03);
}

.bg-white .svc-ah:hover {
    background: rgba(202, 158, 103, 0.08);
}

.bg-white .svc-ac {
    color: #444;
}

.bg-white .svc-apr {
    background: rgba(202, 158, 103, 0.08);
    border-left: 3px solid var(--gold);
}

.bg-white .svc-apr p {
    color: #555;
}

.bg-white .svc-acc {
    border-color: rgba(7, 14, 34, 0.1);
}

.bg-dark-blue {
    background-color: var(--navy-alt) !important;
}

/* === BUTTONS === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: var(--white);
    padding: 14px 32px;
    font-family: 'DM Sans', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition)
}

.btn-primary::after {
    content: '→';
    transition: transform .3s
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(202, 158, 103, .25)
}

.btn-primary:hover::after {
    transform: translateX(4px)
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--gold);
    padding: 14px 32px;
    font-family: 'DM Sans', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid rgba(202, 158, 103, .35);
    cursor: pointer;
    transition: var(--transition)
}

.btn-outline:hover {
    border-color: var(--gold);
    background: rgba(202, 158, 103, .06);
    transform: translateY(-2px)
}

.btn-outline::after {
    content: '→';
    transition: transform .3s
}

.btn-outline:hover::after {
    transform: translateX(4px)
}

/* === ANIMATIONS === */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s ease
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0)
}

.fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity .8s ease, transform .8s ease
}

.fade-left.visible {
    opacity: 1;
    transform: translateX(0)
}

.fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity .8s ease, transform .8s ease
}

.fade-right.visible {
    opacity: 1;
    transform: translateX(0)
}

.fade-scale {
    opacity: 0;
    transform: scale(.92);
    transition: opacity .8s ease, transform .8s ease
}

.fade-scale.visible {
    opacity: 1;
    transform: scale(1)
}

.fade-blur {
    opacity: 0;
    filter: blur(8px);
    transition: opacity .9s ease, filter .9s ease
}

.fade-blur.visible {
    opacity: 1;
    filter: blur(0)
}

/* Staggered children */
.stagger-children .fade-up:nth-child(1) {
    transition-delay: .05s
}

.stagger-children .fade-up:nth-child(2) {
    transition-delay: .12s
}

.stagger-children .fade-up:nth-child(3) {
    transition-delay: .19s
}

.stagger-children .fade-up:nth-child(4) {
    transition-delay: .26s
}

.stagger-children .fade-up:nth-child(5) {
    transition-delay: .33s
}

.stagger-children .fade-up:nth-child(6) {
    transition-delay: .4s
}

/* Typing cursor */
.typed-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--gold);
    margin-left: 4px;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

/* Float / pulse */
@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-12px)
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(202, 158, 103, .3)
    }

    50% {
        box-shadow: 0 0 30px 8px rgba(202, 158, 103, .08)
    }
}

.float-anim {
    animation: float 4s ease-in-out infinite
}

.pulse-anim {
    animation: pulse-glow 3s ease-in-out infinite
}

/* Gradient text shimmer */
@keyframes shimmer {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

.text-shimmer {
    background: linear-gradient(90deg, var(--gold), #fff, var(--gold));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease infinite
}

/* Gold underline reveal */
.reveal-line {
    position: relative;
    display: inline-block
}

.reveal-line::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width .6s cubic-bezier(.25, .46, .45, .94)
}

.reveal-line.visible::after,
.reveal-line:hover::after {
    width: 100%
}

/* Rotating border */
@keyframes rotate-border {
    0% {
        background-position: 0% 0%
    }

    100% {
        background-position: 200% 0%
    }
}

.glow-border {
    border: 1px solid transparent;
    background: linear-gradient(var(--navy-dark), var(--navy-dark)) padding-box, linear-gradient(90deg, var(--gold), transparent, var(--gold)) border-box;
    background-size: 200% 100%;
    animation: rotate-border 4s linear infinite
}

/* Parallax layers */
.parallax-section {
    position: relative;
    overflow: hidden
}

.parallax-bg {
    position: absolute;
    inset: -20% 0;
    width: 100%;
    height: 140%;
    object-fit: cover;
    z-index: 0
}

.parallax-section .container {
    position: relative;
    z-index: 2
}

/* Video background */
.video-bg-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0
}

.video-bg-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

.video-bg-wrap::after,
.hero-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 14, 34, .92), rgba(12, 21, 53, .85));
    z-index: 1
}

.hero-image-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}

.video-hero {
    position: relative;
    overflow: hidden
}

.video-hero .container {
    position: relative;
    z-index: 3
}

.video-hero .hero-content {
    position: relative;
    z-index: 3
}

/* Particle dots */
.particle-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold);
    border-radius: 50%;
    opacity: .15;
    animation: drift linear infinite
}

@keyframes drift {
    0% {
        transform: translateY(0) translateX(0)
    }

    25% {
        transform: translateY(-25vh) translateX(15px)
    }

    50% {
        transform: translateY(-50vh) translateX(-10px)
    }

    75% {
        transform: translateY(-75vh) translateX(20px)
    }

    100% {
        transform: translateY(-100vh) translateX(0)
    }
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--gold);
    z-index: 10000;
    transition: width .1s linear;
    width: 0
}

/* Card tilt on hover */
.tilt-card {
    transition: transform .4s ease, box-shadow .4s ease
}

.tilt-card:hover {
    transform: perspective(800px) rotateY(-2deg) rotateX(2deg) translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3), 0 0 30px rgba(202, 158, 103, .06)
}

/* Counter flip style */
.counter-item {
    position: relative;
    overflow: hidden
}

.counter-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(202, 158, 103, .12), transparent)
}

/* Animated gold line */
@keyframes line-grow {
    0% {
        width: 0
    }

    100% {
        width: 50px
    }
}

.gold-line-anim {
    width: 0;
    height: 2px;
    background: var(--gold);
    margin: 24px 0;
    animation: none
}

.gold-line-anim.visible {
    animation: line-grow .8s ease forwards
}

/* Hover lift for all cards */
.service-card,
.case-card,
.insight-card,
.team-card,
.pillar-card,
.opening-card,
.sub-service-card,
.stat-mega {
    will-change: transform
}

.service-card:hover,
.insight-card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, .2), 0 0 1px rgba(202, 158, 103, .15)
}

.case-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25)
}

/* Hero text entrance */
@keyframes hero-text-in {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(6px)
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0)
    }
}

.hero-animate .section-label {
    animation: hero-text-in .8s ease .2s both
}

.hero-animate .hero-title {
    animation: hero-text-in .8s ease .4s both
}

.hero-animate .hero-subtitle {
    animation: hero-text-in .8s ease .6s both
}

.hero-animate .hero-actions {
    animation: hero-text-in .8s ease .8s both
}

/* CTA video section */
.cta-video-section {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center
}

.cta-video-section .video-bg-wrap::after {
    background: linear-gradient(135deg, rgba(7, 14, 34, .88), rgba(26, 43, 109, .75))
}

.cta-video-section .container {
    position: relative;
    z-index: 3
}

/* Number ticker glow - REMOVED DIVIDER */
.counter-num {
    position: relative
}

/* === TOP BAR === */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.top-bar {
    background: #fff;
    padding: 8px 0;
    font-size: .65rem;
    font-weight: 500;
    color: var(--navy-dark);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid rgba(7, 14, 34, 0.05);
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}


/* === NAVIGATION === */
.main-nav {
    position: relative;
    background: rgba(7, 14, 34, .9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle)
}

.main-nav.scrolled {
    background: rgba(7, 14, 34, .98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, .3)
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 60px;
    max-width: var(--max-w);
    margin: 0 auto
}

.nav-logo svg {
    height: 44px
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px
}

.nav-links a {
    color: var(--white);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .3px;
    transition: color .3s;
    position: relative
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold)
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width .3s
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%
}

.nav-cta-link {
    background: transparent;
    border: 1px solid var(--gold) !important;
    color: var(--gold);
    padding: 0 20px !important;
    font-size: .7rem !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    transition: all .3s !important;
    animation: cta-blink 2s infinite;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@keyframes cta-blink {

    0%,
    100% {
        background-color: transparent;
        color: var(--gold);
    }

    50% {
        background-color: var(--gold);
        color: var(--white);
    }
}

.nav-cta-link:hover {
    background: var(--gold) !important;
    color: var(--white) !important;
    animation: none !important;
}

.lang-select {
    background: var(--gold);
    border: 1px solid var(--gold);
    color: var(--white);
    padding: 0 10px;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    outline: none;
    border-radius: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-align: center;
    transition: all 0.3s;
    margin-left: 8px;
    height: 38px;
    min-width: 90px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%23070e22' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 24px;
}

.lang-select:hover {
    background-color: var(--gold);
    color: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%23070e22' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
}

.lang-select option {
    background: #010816;
    color: #fff;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    z-index: 2001
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--gold);
    transition: all .3s
}

/* === MEGA MENU === */
.has-dropdown {
    position: static !important;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.chevron {
    font-size: 0.6rem;
    transition: transform 0.3s;
    opacity: 0.7;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(7, 14, 34, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(202, 158, 103, 0.2);
    border-bottom: 3px solid var(--gold);
    padding: 50px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 999;
}

.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown:hover .chevron {
    transform: rotate(180deg);
}

.mega-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 60px;
    padding: 0 60px;
}

.mega-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mega-title {
    color: var(--gold) !important;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(202, 158, 103, 0.15);
    display: block;
    text-decoration: none !important;
}

.mega-title:hover {
    color: var(--white) !important;
}

.mega-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mega-links a {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    transition: all 0.3s;
}

.mega-links a:hover {
    color: var(--gold) !important;
    padding-left: 4px;
}

/* Mobile Adjustments for Mega Menu */
@media (max-width: 1100px) {
    .has-dropdown {
        width: 100%;
        position: relative !important;
    }

    .dropdown-trigger {
        justify-content: space-between;
        width: 100%;
    }

    .mega-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        display: none;
        transform: none;
        background: rgba(255, 255, 255, 0.03);
        backdrop-filter: none;
        border: none;
        padding: 0;
        transition: none;
    }

    .has-dropdown.active .mega-menu {
        opacity: 1;
        visibility: visible;
        display: block;
        padding: 20px 0;
    }

    .mega-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 25px;
    }

    .mega-col {
        gap: 10px;
    }

    .mega-title {
        font-size: 0.75rem !important;
        border-bottom: none;
        padding-bottom: 0;
    }

    .mega-links {
        padding-left: 15px;
        border-left: 1px solid rgba(202, 158, 103, 0.2);
    }
}

@media(max-width:1200px) {
    .nav-inner {
        padding: 14px 40px
    }
}

@media(max-width:1100px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--navy-deep);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        transition: right .4s;
        z-index: 2000;
        border-left: 1px solid var(--border-subtle)
    }

    .nav-links.open {
        right: 0
    }

    .hamburger {
        display: flex
    }
}

@media(max-width:768px) {
    .nav-inner {
        padding: 12px 20px
    }
}

/* === HERO === */
.hero-section {
    display: flex;
    align-items: center;
    position: relative
}

.hero-content {
    max-width: 750px
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 500;
    line-height: 1.08;
    margin-bottom: 20px
}

.hero-title span {
    color: var(--gold)
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 600px;
    margin-bottom: 36px
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap
}

@media(max-width:768px) {
    .hero-content {
        max-width: 100%
    }

    .hero-subtitle {
        max-width: 100%
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px
    }

    .hero-actions a {
        text-align: center;
        justify-content: center
    }
}

/* === COUNTERS === */
.counters {
    padding: 60px 0 40px !important;
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.counter-card {
    padding: 18px 15px;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.counter-card:hover {
    transform: translateY(-5px);
}

.counter-card--outlined {
    background: transparent;
    border: 1px solid rgba(202, 158, 103, 0.4);
}

.counter-card--navy {
    background: #0d1b3e;
    /* Navy Navy Deep */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.counter-card--gold {
    background: #ca9e67;
    /* Theme Gold/Brown */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.counter-card--gold .counter-num,
.counter-card--gold .counter-label {
    color: var(--white) !important;
}

.counter-card--gold .counter-icon {
    color: var(--white);
}

.counter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
}

.counter-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.counter-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.counter-card--navy .counter-icon {
    color: var(--gold);
}

.counter-card--gold .counter-icon {
    color: #fff;
}

.counter-card:hover .counter-icon {
    transform: translateY(-3px) scale(1.1);
}

.counter-num {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--gold);
    display: block;
    line-height: 1.1;
    margin-bottom: 0;
}

.counter-card--navy .counter-num {
    color: #fff;
}

.counter-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.counter-card--navy .counter-label,
.counter-card--gold .counter-label {
    color: #ffffff;
}

@media(max-width: 1200px) {
    .counters-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 768px) {
    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 480px) {
    .counters-grid {
        grid-template-columns: 1fr;
    }
}

/* === SPLIT GRID === */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center
}

@media(max-width:960px) {
    .split-grid {
        grid-template-columns: 1fr;
        gap: 48px
    }
}

.about-stats-row {
    display: flex;
    gap: 32px;
    margin-top: 24px
}

.about-stat .n {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 500;
    color: var(--gold)
}

.about-stat .n span {
    font-size: 1rem
}

.about-stat .l {
    font-size: .8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase
}

/* === SERVICES GRID === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    background-clip: padding-box;
    /* Crucial: stops image from leaking under the border */
    border: 1px solid rgba(1, 8, 22, 0.12);
    padding: 32px;
    padding-bottom: 20px;
    min-height: 380px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: left;
    text-decoration: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    outline: 1px solid transparent;
    border-radius: 4px;
    /* Subtle rounding for cleaner edges */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    /* Forces true 1px corner clipping in webkit */
    mask-image: radial-gradient(white, black);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(1, 8, 22, 1) 0%,
            rgba(1, 8, 22, 0.95) 40%,
            rgba(1, 8, 22, 0.8) 100%);
    z-index: 1;
    transition: var(--transition);
}

.service-card:hover::before {
    background: linear-gradient(to top,
            rgba(1, 8, 22, 1) 0%,
            rgba(1, 8, 22, 0.98) 50%,
            rgba(1, 8, 22, 0.85) 100%);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.service-card-info {
    position: relative;
    z-index: 2;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.service-card p {
    font-size: .88rem;
    color: #ffffff;
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 8px;
}

.card-arrow {
    font-size: 1.2rem;
    color: var(--gold);
    transition: transform 0.3s ease;
    display: inline-block;
}

.service-card:hover .card-arrow {
    transform: translateX(8px);
}

.service-icon {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 20px
}


.service-card p {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300
}

.card-arrow {
    position: absolute;
    bottom: 20px;
    right: 24px;
    color: var(--gold);
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all .3s
}

.service-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0)
}

@media(max-width:960px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:768px) {
    .services-grid {
        grid-template-columns: 1fr
    }
}

/* === SERVICES DETAIL GRID === */
.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px
}

.service-detail-card {
    display: block;
    background: var(--card-bg);
    border: 1px solid rgba(202, 158, 103, .06);
    padding: 44px 36px;
    transition: var(--transition);
    position: relative
}

.service-detail-card:hover {
    background: var(--card-hover);
    transform: translateY(-4px);
    border-color: rgba(202, 158, 103, .15)
}

.dark-theme-card {
    background: var(--navy-deep) !important;
    border: 1px solid rgba(202, 158, 103, 0.1) !important;
}

.dark-theme-card:hover {
    background: var(--navy-dark) !important;
    border-color: var(--gold) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
}

.sdc-icon {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 16px
}

.service-detail-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px
}

.service-detail-card p {
    font-size: .75rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 16px
}

.service-detail-card ul {
    margin-bottom: 16px
}

.service-detail-card li {
    font-size: .78rem;
    color: var(--text-faint);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
    font-weight: 300
}

.service-detail-card li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gold)
}

@media(max-width:768px) {
    .services-detail-grid {
        grid-template-columns: 1fr
    }
}

/* === SUB-SERVICES === */
.sub-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px
}

.sub-service-card {
    background: var(--card-bg);
    border: 1px solid rgba(202, 158, 103, .06);
    padding: 40px 36px;
    transition: var(--transition)
}

.sub-service-card:hover {
    border-color: rgba(202, 158, 103, .2);
    background: var(--card-hover)
}

.sub-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 500;
    color: rgba(202, 158, 103, .2);
    margin-bottom: 8px
}

.sub-service-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px
}

.sub-service-card p {
    font-size: .75rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300
}

@media(max-width:768px) {
    .sub-services-grid {
        grid-template-columns: 1fr
    }
}

/* === CASES === */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px
}

.case-card {
    display: block;
    background: var(--card-bg);
    border: 1px solid rgba(202, 158, 103, .06);
    overflow: hidden;
    transition: var(--transition)
}

.case-card:hover {
    background: var(--card-hover);
    transform: translateY(-4px)
}

.case-card-img {
    height: 200px;
    overflow: hidden;
    position: relative
}

.case-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s
}

.case-card:hover .case-card-img img {
    transform: scale(1.05)
}

.case-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(7, 14, 34, .6) 100%)
}

.case-stat {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--gold);
    padding: 8px 14px;
    z-index: 2
}

.case-stat strong {
    font-size: 1.15rem;
    color: var(--white);
    display: block;
    font-weight: 800;
    line-height: 1.2
}

.case-stat span {
    font-size: .72rem;
    color: rgba(255, 255, 255, 0.9);
    /* Darker navy/grey for better contrast on gold */
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 600;
    display: block;
    margin-top: 2px
}

.case-card-body {
    padding: 24px
}

.case-card-industry {
    font-size: .75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 8px
}

.case-card h3 {
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--white);
    line-height: 1.3
}

.case-card p {
    font-size: .78rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 8px
}

.case-card .read-more,
.insight-card .read-more {
    font-size: .72rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px
}

@media(max-width:1100px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:600px) {
    .cases-grid {
        grid-template-columns: 1fr
    }
}

/* === CASE DETAIL === */
.case-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start
}

.case-sidebar-box {
    background: var(--card-bg);
    border: 1px solid rgba(202, 158, 103, .08);
    padding: 32px;
    margin-bottom: 20px
}

.case-sidebar-box h4 {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px
}

.case-sidebar-box p {
    font-size: .75rem;
    color: var(--text-muted);
    font-weight: 300
}

.case-detail-stat {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle)
}

.case-detail-stat:last-of-type {
    border-bottom: none
}

.case-detail-stat strong {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--gold);
    display: block
}

.case-detail-stat span {
    font-size: .75rem;
    color: var(--text-muted);
    font-weight: 300
}

@media(max-width:960px) {
    .case-detail-grid {
        grid-template-columns: 1fr
    }
}

/* === INSIGHTS === */
.insights-section {
    padding: 120px 0;
    position: relative
}

.insights-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(202, 158, 103, .15), transparent)
}

.insights-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 56px;
    flex-wrap: wrap;
    gap: 20px
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px
}

.insight-card {
    display: block;
    background: var(--card-bg);
    border: 1px solid rgba(202, 158, 103, .06);
    overflow: hidden;
    transition: var(--transition)
}

.insight-card:hover {
    background: var(--card-hover);
    transform: translateY(-4px)
}

.insight-card-img {
    height: 220px;
    overflow: hidden;
    position: relative
}

.insight-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s
}

.insight-card:hover .insight-card-img img {
    transform: scale(1.05)
}

.insight-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(7, 14, 34, .5) 100%)
}

.insight-date {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: var(--gold);
    padding: 6px 12px;
    font-size: .75rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2
}

.insight-body {
    padding: 28px
}

.insight-meta {
    font-size: .8rem;
    color: var(--text-faint);
    margin-bottom: 10px;
    display: flex;
    gap: 12px
}

.insight-card h3 {
    font-size: .95rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 8px;
    transition: color .3s
}

.insight-card:hover h3 {
    color: var(--gold)
}

@media(max-width:960px) {
    .insights-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:768px) {
    .insights-grid {
        grid-template-columns: 1fr
    }
}

/* === ARTICLE LAYOUT === */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start
}

.article-content {
    font-size: .95rem;
    line-height: 1.85;
    color: var(--text-muted);
    font-weight: 300
}

.article-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--white);
    margin: 40px 0 16px
}

.article-content p {
    margin-bottom: 18px
}

.article-content strong {
    color: var(--white);
    font-weight: 600
}

.sidebar-box {
    background: var(--card-bg);
    border: 1px solid rgba(202, 158, 103, .08);
    padding: 28px;
    margin-bottom: 20px
}

.sidebar-box h4 {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px
}

.sidebar-box p {
    font-size: .75rem;
    color: var(--text-muted);
    font-weight: 300
}

@media(max-width:960px) {
    .article-layout {
        grid-template-columns: 1fr
    }
}

/* === TEAM === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px
}

.team-card {
    background: #070e22;
    border: 1px solid rgba(255, 255, 255, .05);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.team-card:hover {
    background: #0c1535;
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.team-card-img {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy-deep), rgba(26, 43, 109, .3));
    overflow: hidden;
}

.team-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.team-card-img img.pre-cropped {
    transform: scale(1.08);
}

.team-card:hover .team-card-img img {
    transform: scale(1.1);
}

.team-card:hover .team-card-img img.pre-cropped {
    transform: scale(1.18);
}

.team-initials {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 500;
    color: var(--gold);
    opacity: .6
}

.team-card-body {
    padding: 20px;
    text-align: center
}

.team-card h4 {
    font-size: .88rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px
}

.team-role {
    font-size: .75rem;
    color: var(--gold);
    font-weight: 500;
    display: block;
    margin-bottom: 6px
}

.team-quals {
    font-size: .75rem;
    color: var(--text-faint);
    font-weight: 300
}

.team-focus {
    font-size: .65rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-top: 4px
}

@media(max-width:1100px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media(max-width:600px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

/* === PILLARS === */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px
}

.pillar-card {
    background: var(--card-bg);
    border: 1px solid rgba(202, 158, 103, .06);
    padding: 36px 28px;
    text-align: left;
    transition: var(--transition)
}

.pillar-card:hover {
    border-color: rgba(202, 158, 103, .2);
    background: var(--card-hover)
}

.pillar-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 500;
    color: rgba(202, 158, 103, .2);
    margin-bottom: 8px
}

.pillar-card h3 {
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 10px
}

.pillar-card p {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300
}

@media(max-width:768px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:480px) {
    .pillars-grid {
        grid-template-columns: 1fr
    }
}

/* === STATS MEGA === */
.stats-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px
}

.stat-mega {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, .05);
    padding: 16px 15px;
    transition: var(--transition)
}

.stat-mega:nth-child(even) {
    background: var(--gold);
}

.stat-mega:hover {
    border-color: rgba(202, 158, 103, .2);
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.05);
}

.stat-mega:nth-child(even):hover {
    background: var(--gold-light);
}

.stat-mega i {
    display: block;
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 8px;
    transition: var(--transition)
}

.stat-mega:nth-child(even) i {
    color: #fff;
}

.stat-mega strong {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--gold);
    display: block;
    margin-bottom: 8px;
    line-height: 1
}

.stat-mega:nth-child(even) strong {
    color: #fff;
}

.stat-mega span {
    font-size: .75rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: .5px;
    text-transform: uppercase;
    opacity: 0.8;
}

.stat-mega:nth-child(even) span {
    color: #fff;
}

@media(max-width:960px) {
    .stats-mega-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media(max-width:600px) {
    .stats-mega-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

/* === METHODOLOGY === */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px
}

.method-step {
    background: #fff;
    border: 1px solid rgba(202, 158, 103, .12);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    border-radius: 2px;
}

.method-step:nth-child(1) { z-index: 5; }
.method-step:nth-child(2) { z-index: 4; }
.method-step:nth-child(3) { z-index: 3; }
.method-step:nth-child(4) { z-index: 2; }
.method-step:nth-child(5) { z-index: 1; }

.method-step:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .2);
    z-index: 10;
}

.method-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 500;
    color: rgba(202, 158, 103, .2);
    margin-bottom: 8px
}

.method-step h3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #0c1535;
}

.method-step p {
    font-size: .75rem;
    color: #4a5568;
    font-weight: 400;
    line-height: 1.6
}

.method-arrow {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: #0c1535;
    font-size: 2rem;
    z-index: 6;
    pointer-events: none;
    animation: methodArrowBlink 4s infinite;
}

.method-step:nth-child(1) .method-arrow { animation-delay: 0s; }
.method-step:nth-child(2) .method-arrow { animation-delay: 1s; }
.method-step:nth-child(3) .method-arrow { animation-delay: 2s; }
.method-step:nth-child(4) .method-arrow { animation-delay: 3s; }

@keyframes methodArrowBlink {
    0%, 20%, 80%, 100% { 
        opacity: 0.1; 
        transform: translateY(-50%) translateX(0); 
    }
    40%, 60% { 
        opacity: 1; 
        transform: translateY(-50%) translateX(5px); 
    }
}

.method-step:last-child .method-arrow {
    display: none
}

@media(max-width:960px) {
    .methodology-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .method-arrow {
        display: none
    }
}

@media(max-width:600px) {
    .methodology-grid {
        grid-template-columns: 1fr
    }
}

/* === CONTACT === */
.contact-section {
    padding: 120px 0
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 40px;
    align-items: start
}

.contact-form-wrap {
    background: var(--card-bg);
    border: 1px solid rgba(202, 158, 103, .08);
    padding: 44px
}

.contact-form-wrap h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 24px
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px
}

.form-row.full {
    grid-template-columns: 1fr
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border-subtle);
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: .82rem;
    font-weight: 300;
    outline: none;
    transition: border-color .3s;
    -webkit-appearance: none;
    appearance: none
}

.form-input::placeholder {
    color: var(--text-faint)
}

.form-input:focus {
    border-color: var(--gold)
}

select.form-input {
    color: var(--text-faint)
}

select.form-input option {
    background: var(--navy-deep);
    color: var(--white)
}

textarea.form-input {
    resize: vertical;
    min-height: 120px
}

.contact-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 24px
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(202, 158, 103, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold);
    font-size: 1rem;
    transition: all .3s
}

.contact-info-item:hover .contact-info-icon {
    border-color: var(--gold);
    background: rgba(202, 158, 103, .1);
    transform: translateY(-2px)
}

.contact-info-text .label {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px
}

.contact-info-text p {
    font-size: .75rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.5
}

.contact-info-text a {
    color: var(--white);
    font-weight: 500;
    transition: color .3s
}

.contact-info-text a:hover {
    color: var(--gold)
}

.contact-social-group {
    display: flex;
    gap: 12px;
    margin-top: 8px
}

.contact-social-group a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(202, 158, 103, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    transition: all .3s;
    background: rgba(255, 255, 255, .03)
}

.contact-social-group a:hover {
    border-color: var(--gold);
    background: rgba(202, 158, 103, .1);
    transform: translateY(-2px);
    color: var(--gold)
}

.contact-offices {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border-subtle)
}

.contact-offices h4 {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px
}

.office-detail {
    margin-bottom: 16px
}

.office-detail strong {
    font-size: .82rem;
    color: var(--gold);
    display: block;
    margin-bottom: 4px
}

.office-detail p {
    font-size: .78rem;
    color: var(--text-faint);
    font-weight: 300;
    line-height: 1.5
}

@media(max-width:960px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px
    }

    .form-row {
        grid-template-columns: 1fr
    }
}

/* === CAREERS === */
.career-perks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px
}

.perk {
    background: var(--card-bg);
    border: 1px solid rgba(202, 158, 103, .06);
    padding: 20px
}

.perk strong {
    font-size: .75rem;
    color: var(--white);
    display: block;
    margin-bottom: 6px
}

.perk p {
    font-size: .78rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.5
}

.openings-list {
    display: flex;
    flex-direction: column;
    gap: 2px
}

.opening-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid rgba(202, 158, 103, .06);
    padding: 28px 36px;
    transition: var(--transition);
    flex-wrap: wrap;
    gap: 16px
}

.opening-card:hover {
    border-color: rgba(202, 158, 103, .2);
    background: var(--card-hover)
}

.opening-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px
}

.opening-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap
}

.opening-meta span {
    font-size: .75rem;
    color: var(--text-muted);
    font-weight: 300;
    padding: 4px 12px;
    border: 1px solid var(--border-subtle)
}

.career-apply-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start
}

@media(max-width:960px) {
    .career-apply-grid {
        grid-template-columns: 1fr
    }
}

/* === FILE UPLOAD === */
.file-upload-label {
    display: block;
    cursor: pointer
}

.file-input {
    display: none
}

.file-upload-display {
    display: block;
    padding: 14px 16px;
    background: rgba(255, 255, 255, .03);
    border: 1px dashed rgba(202, 158, 103, .25);
    color: var(--text-faint);
    font-size: .82rem;
    font-weight: 300;
    text-align: center;
    transition: all .3s
}

.file-upload-display:hover {
    border-color: var(--gold);
    color: var(--gold)
}

/* === LEGAL === */
.legal-content {
    max-width: 900px;
    font-size: .9rem;
    line-height: 1.85;
    color: var(--text-muted);
    font-weight: 300
}

.legal-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--white);
    margin: 36px 0 12px
}

.legal-content p {
    margin-bottom: 14px
}

/* === MARQUEE === */
.quote-band {
    padding: 40px 0;
    background: var(--navy-dark);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden
}

.quote-band-inner {
    display: flex;
    align-items: center;
    gap: 48px;
    animation: marquee 25s linear infinite;
    white-space: nowrap
}

.quote-band-text {
    font-size: 1.4rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 1);
    text-transform: uppercase;
    letter-spacing: 4px;
    flex-shrink: 0
}

.quote-band-dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 1
}

@keyframes marquee {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(-50%)
    }
}

/* === FOOTER === */
.footer {
    background: #050a18;
    border-top: 1px solid rgba(202, 158, 103, .08);
    padding: 72px 0 0
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 56px
}

.footer-brand svg {
    margin-bottom: 8px
}

.footer-brand p {
    font-size: .82rem;
    color: var(--white);
    line-height: 1.7;
    font-weight: 300
}

.footer-col h4 {
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px
}

.footer-col a {
    display: block;
    font-size: .8rem;
    color: var(--white);
    margin-bottom: 9px;
    transition: color .3s;
    font-weight: 300
}

.footer-col a:hover {
    color: var(--gold)
}

.footer-newsletter p {
    font-size: .82rem;
    color: var(--white);
    font-weight: 300;
    margin-bottom: 14px;
    line-height: 1.5
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border-subtle);
    border-right: none;
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: .78rem;
    outline: none
}

.newsletter-input::placeholder {
    color: var(--text-faint)
}

.newsletter-input:focus {
    border-color: var(--gold)
}

.newsletter-btn {
    padding: 12px 18px;
    background: var(--gold);
    border: none;
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .3s;
    white-space: nowrap
}

.newsletter-btn:hover {
    background: var(--gold-light)
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px
}

.footer-social a {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    transition: all .3s
}

.footer-social a:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(202, 158, 103, .06)
}

.footer-bottom {
    border-top: 1px solid rgba(202, 158, 103, .06);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.footer-bottom p {
    font-size: .7rem;
    color: #ffffff;
    font-weight: 300
}

.footer-bottom-links {
    display: flex;
    gap: 20px
}

.footer-bottom-links a {
    font-size: .7rem;
    color: #ffffff;
    transition: color .3s
}

.footer-bottom-links a:hover {
    color: var(--gold)
}

@media(max-width:960px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:560px) {
    .footer-grid {
        grid-template-columns: 1fr
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center
    }
}

/* === BACK TO TOP === */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 42px;
    height: 42px;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all .4s;
    z-index: 999;
    border: none
}

.back-top.show {
    opacity: 1;
    transform: translateY(0)
}

.back-top:hover {
    background: var(--gold-light);
    transform: translateY(-2px)
}

/* ═══ PI Partners v5.0 Additions ═══ */
.whatsapp-float {
    position: fixed;
    bottom: 85px;
    right: 23px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
    transition: all .3s;
    animation: waPulse 2s infinite
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, .6)
}

@keyframes waPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, .4)
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, .7)
    }
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    margin-left: 14px;
    gap: 4px
}

.lang-btn {
    color: rgba(255, 255, 255, .4);
    text-decoration: none;
    font-size: .65rem;
    padding: 3px 8px;
    border: 1px solid rgba(202, 158, 103, .2);
    border-radius: 3px;
    transition: all .3s;
    line-height: 1
}

.lang-btn.active,
.lang-btn:hover {
    color: #ca9e67;
    border-color: #ca9e67;
    background: rgba(202, 158, 103, .1)
}

.client-logos {
    padding: 80px 0;
    background: var(--navy-deep)
}

.cl-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px 60px
}

.cl-item {
    width: 120px;
    height: 40px;
    background: rgba(255, 255, 255, .06);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .6rem;
    color: rgba(255, 255, 255, .25);
    transition: all .4s
}

.cl-item:hover {
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .4)
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.footer-social a {
    display: inline-flex;
    /* Ensure SVG obeys flexbox perfectly */
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: var(--transition)
}

.footer-social a svg {
    display: block;
    /* Remove baseline space */
    margin: auto;
    /* Fallback centering */
}

.footer-social a:hover {
    color: var(--white);
    border-color: var(--gold);
    background: rgba(202, 158, 103, 0.1);
}

.testimonials {
    padding: 120px 0;
    background: #ffffff;
}

.ts-slider {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    min-height: 200px
}

.ts-item {
    display: none;
    animation: tsFd .6s ease both
}

.ts-item.ts-on {
    display: block
}

@keyframes tsFd {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.ts-q {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--navy-dark);
    font-style: italic;
    margin-bottom: 28px
}

.ts-a {
    font-size: .75rem;
    font-weight: 600;
    color: #ca9e67
}

.ts-r {
    font-size: .75rem;
    color: rgba(7, 14, 34, 0.6);
    margin-top: 4px
}

.ts-stars {
    color: #ca9e67;
    font-size: 1rem;
    margin-bottom: 16px;
    letter-spacing: 3px
}

.ts-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px
}

.ts-d {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(7, 14, 34, 0.15);
    border: none;
    cursor: pointer;
    transition: all .3s
}

.ts-d.ts-da {
    background: #ca9e67;
    width: 24px;
    border-radius: 4px
}

.svc-acc {
    margin-bottom: 8px;
    border: 1px solid rgba(202, 158, 103, .12);
    border-radius: 8px;
    overflow: hidden;
    transition: all .3s
}

.svc-acc:hover {
    border-color: rgba(202, 158, 103, .25)
}

.svc-ah {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    cursor: pointer;
    background: rgba(255, 255, 255, .02);
    transition: all .3s;
    gap: 16px
}

.svc-ah:hover {
    background: rgba(202, 158, 103, .05)
}

.svc-ah h4 {
    margin: 0;
    font-size: .92rem;
    font-weight: 600;
    color: #fff;
    font-family: 'DM Sans', sans-serif
}

.svc-ch {
    color: #ca9e67;
    font-size: 1.1rem;
    transition: transform .3s;
    flex-shrink: 0
}

.svc-acc.open .svc-ch {
    transform: rotate(180deg)
}

.svc-ab {
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s ease
}

.svc-acc.open .svc-ab {
    max-height: 1200px
}

.svc-ac {
    padding: 0 24px 24px;
    color: #ffffff;
    font-size: .88rem;
    line-height: 1.7
}

.svc-ac p {
    margin-bottom: 8px
}

.svc-apr {
    margin-top: 12px;
    padding: 14px 18px;
    background: rgba(202, 158, 103, .06);
    border-left: 3px solid #ca9e67;
    border-radius: 0 6px 6px 0
}

.svc-apr h5 {
    color: #ca9e67;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 6px 0
}

.svc-apr p {
    margin: 0;
    font-size: .82rem;
    color: #ffffff
}

.svc-vert {
    padding: 70px 0;
    position: relative
}

.svc-vert:nth-child(even) {
    background: var(--navy-deep)
}

.sv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start
}

.sv-img {
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: 120px
}

.sv-img img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block
}

/* Restructured Layout Utility for Services */
.sv-grid.alt-layout .fade-right {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sv-grid.alt-layout .sv-img {
    position: static;
    margin-top: 32px;
}

.sv-grid.alt-layout .sv-img img {
    height: 440px; /* More balanced for in-column display */
}

@media(max-width:768px) {
    .sv-grid {
        grid-template-columns: 1fr;
        gap: 32px
    }

    .sv-img {
        position: static
    }
}

.sub-svc-detail {
    padding: 100px 0
}

.sub-svc-detail:nth-child(even) {
    background: var(--navy-deep)
}

.ss-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 40px;
    align-items: start
}

.ss-img img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 12px
}

@media(max-width:768px) {
    .ss-grid {
        grid-template-columns: 1fr
    }
}

.ss-approach {
    margin-top: 24px;
    padding: 20px 24px;
    background: rgba(202, 158, 103, .06);
    border-left: 3px solid #ca9e67;
    border-radius: 0 8px 8px 0
}

.ss-approach h3 {
    color: #ca9e67;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px 0
}

.ss-step {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    align-items: flex-start
}

.ss-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(202, 158, 103, .15);
    color: #ca9e67;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 500;
    flex-shrink: 0
}

.ss-step p {
    margin: 0;
    font-size: .75rem;
    color: rgba(255, 255, 255, .6);
    line-height: 1.6
}

.breadcrumb {
    font-size: .8rem;
    color: rgba(255, 255, 255, .4);
    margin-bottom: 8px
}

.breadcrumb a {
    color: #ca9e67;
    text-decoration: none
}

.breadcrumb a:hover {
    text-decoration: underline
}

/* === CLIENT LOGO CAROUSEL === */
.client-logos {
    padding: 80px 0;
    overflow: hidden;
}

.logo-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.logo-track {
    display: flex;
    width: max-content;
    animation: scroll-marquee 120s linear infinite;
}

.logo-track:hover {
    animation-play-state: running;
    /* Ensure no pausing on hover if requested, though user just said no hover effect on logos */
}

.cl-item {
    width: 12.5vw;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 20px;
    transition: none;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.cl-item img {
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: none;
}


@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Using percentage for relative length regardless of item count */
    }
}

@media (max-width: 768px) {
    .cl-item {
        width: 25vw;
        padding: 0 10px;
    }

    .cl-item img {
        max-height: 35px;
    }
}

/* === AJAX FORM MESSAGES === */
.form-message {
    padding: 14px 18px;
    margin-top: 15px;
    border-radius: 4px;
    font-size: 0.88rem;
    display: none;
    line-height: 1.5;
    animation: formFadeIn 0.4s ease forwards;
    width: 100%;
    flex-basis: 100%;
    box-sizing: border-box;
}

.form-message.success {
    display: block !important;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.form-message.error {
    display: block !important;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

@keyframes formFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === GOOGLE TRANSLATE CUSTOMIZATION === */
#google_translate_element {
    display: inline-block;
    vertical-align: middle;
}

#google_translate_element .goog-te-gadget-simple * {
    display: none !important;
}

#google_translate_element .goog-te-gadget-simple:after,
.goog-te-gadget-simple:after {
    display: inline-block !important;
    content: 'EN/\0627\0644\0639\0631\0628\064a\0629' !important;
    color: var(--gold) !important;
    font-weight: 600 !important;
    font-family: 'DM Sans', sans-serif !important;
    text-transform: uppercase !important;
    visibility: visible !important;
}

#google_translate_element .goog-te-gadget-simple,
.main-nav .goog-te-gadget-simple,
.main-nav.scrolled .goog-te-gadget-simple {
    color: transparent !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 1px solid var(--gold) !important;
    padding: 0 20px !important;
    font-size: .7rem !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    font-family: 'DM Sans', sans-serif !important;
}

#google_translate_element .goog-te-gadget-simple:hover {
    background: var(--gold) !important;
}

#google_translate_element .goog-te-gadget-simple:hover:after {
    color: var(--navy-dark) !important;
}

/* NUCLEAR specificity for the translator widget on scroll/header-sticky */
#mainNav #google_translate_element .goog-te-gadget-simple,
.main-nav #google_translate_element .goog-te-gadget-simple {
    background-color: transparent !important;
    border: 1px solid var(--gold) !important;
    padding: 0 15px !important;
    height: 38px !important;
    border-radius: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

#mainNav #google_translate_element .goog-te-gadget-simple span,
#mainNav #google_translate_element .goog-te-gadget-simple img,
#mainNav #google_translate_element .goog-te-gadget-simple a,
#mainNav #google_translate_element .goog-te-gadget-simple i {
    display: none !important;
}

#mainNav #google_translate_element .goog-te-gadget-simple:after {
    display: inline-block !important;
    content: 'EN/\0627\0644\0639\0631\0628\064a\0629' !important;
    color: var(--gold) !important;
    font-size: .7rem !important;
    letter-spacing: 1.5px !important;
    font-weight: 600 !important;
    visibility: visible !important;
}

.goog-te-menu-frame,
iframe.goog-te-menu-frame,
iframe.skiptranslate[id^=":"] {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    position: fixed !important;
    z-index: 2147483647 !important;
}

body {
    top: 0 !important;
}

.skiptranslate>iframe {
    display: none !important;
}

/* FIX: Hide the Google Translate loader/spinner and its container */
.goog-te-spinner-pos,
.goog-te-spinner-pos *,
.goog-te-spinner-main,
.goog-te-spinner {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* FIX: Hide the "Original Text" tooltip and highlight that appear on hover/selection */
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-te-balloon-frame skiptranslate {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.goog-text-highlight {
    background: transparent !important;
    box-shadow: none !important;
}

/* NUCLEAR OPTION: Hide any other Google Translate artifacts that might appear */
[class*="goog-te-spinner"],
[id*="goog-te-spinner"],
.goog-te-loader,
.goog-te-processing {
    display: none !important;
    visibility: hidden !important;
}

/* === SMART RTL SUPPORT === */
[dir='rtl'],
.rtl-mode {
    text-align: right !important;
}

html[lang*='ar'] .nav-inner,
html.translated-rtl .nav-inner,
[dir='rtl'] .nav-inner,
.rtl-mode .nav-inner {
    flex-direction: row-reverse !important;
    display: flex !important;
}

html[lang*='ar'] .nav-links,
html.translated-rtl .nav-links,
[dir='rtl'] .nav-links,
.rtl-mode .nav-links {
    flex-direction: row-reverse !important;
    gap: 28px !important;
    display: flex !important;
}

[dir='rtl'] .nav-links a {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

[dir='rtl'] #google_translate_element,
.rtl-mode #google_translate_element {
    margin-left: 0 !important;
    margin-right: 15px !important;
}

/* FIX: Logo Carousel disappears in RTL due to flex/animation direction conflicts. 
   Forcing LTR for the carousel is the safest way to maintain the infinite scroll logic. */
[dir='rtl'] .logo-carousel-container,
.rtl-mode .logo-carousel-container {
    direction: ltr !important;
}

/* FIX: Ensure hero container moves to right (overriding inline margin-left: 5%) */
[dir='rtl'] .hero-section .container,
.rtl-mode .hero-section .container {
    margin-left: auto !important;
    margin-right: 5% !important;
}

[dir='rtl'] .hero-content,
.rtl-mode .hero-content {
    text-align: right !important;
}

[dir='rtl'] .hero-actions,
.rtl-mode .hero-actions {
    justify-content: flex-start !important;
}

/* FIX: Remove unwanted vertical border from subtitles */
[dir='rtl'] .section-label,
.rtl-mode .section-label {
    border-right: none !important;
    padding-right: 0 !important;
}

/* FIX: Mirror the section label line (flex will handle ordering) */
[dir='rtl'] .section-label::before,
.rtl-mode .section-label::before {
    order: 1;
    /* Moves line to the right of text */
}

/* FIX: Counter Icons - Move to left to avoid overlap */
[dir='rtl'] .counter-icon,
.rtl-mode .counter-icon {
    right: auto !important;
    left: 15px !important;
}

/* FIX: Hero Navigation Arrows */
[dir='rtl'] .hs-prev,
.rtl-mode .hs-prev {
    left: auto !important;
    right: 32px !important;
    padding-right: 0 !important;
    padding-left: 3px !important;
}

[dir='rtl'] .hs-next,
.rtl-mode .hs-next {
    right: auto !important;
    left: 32px !important;
    padding-left: 0 !important;
    padding-right: 3px !important;
}

/* FIX: Flip all arrow icons in RTL */
[dir='rtl'] .hs-prev svg,
.rtl-mode .hs-prev svg,
[dir='rtl'] .hs-next svg,
.rtl-mode .hs-next svg,
[dir='rtl'] .btn-primary svg,
.rtl-mode .btn-primary svg,
[dir='rtl'] .btn-outline svg,
.rtl-mode .btn-outline svg {
    transform: scaleX(-1) !important;
}

[dir='rtl'] .footer-grid,
.rtl-mode .footer-grid {
    text-align: right !important;
}

[dir='rtl'] .footer-col,
.rtl-mode .footer-col {
    align-items: flex-start !important;
}

[dir='rtl'] .contact-info,
.rtl-mode .contact-info {
    text-align: right !important;
    direction: rtl !important;
}

[dir='rtl'] .contact-info-item,
.rtl-mode .contact-info-item {
    direction: rtl !important;
    flex-direction: row !important;
    /* direction: rtl flips the row naturally */
    display: flex !important;
}

[dir='rtl'] .contact-info-icon,
.rtl-mode .contact-info-icon {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

[dir='rtl'] .contact-info-text,
.rtl-mode .contact-info-text {
    text-align: right !important;
}

[dir='rtl'] .contact-info h3,
.rtl-mode .contact-info h3 {
    text-align: right !important;
    width: 100% !important;
}

/* FIX: Social group handles the inline 60px padding-left by forcing right alignment 
   and moving the padding to the correct side in RTL. */
[dir='rtl'] .contact-social-group,
.rtl-mode .contact-social-group {
    padding-left: 0 !important;
    padding-right: 60px !important;
    justify-content: flex-start !important;
    display: flex !important;
    direction: rtl !important;
}

[dir='rtl'] .counter-box,
.rtl-mode .counter-box {
    text-align: right !important;
}

[dir='rtl'] .service-card,
.rtl-mode .service-card {
    text-align: right !important;
}

[dir='rtl'] .hs-slide.hs-active,
.rtl-mode .hs-slide.hs-active {
    animation: hsSlideRTL .8s cubic-bezier(.4, 0, .2, 1) both !important;
}

@keyframes hsSlideRTL {
    from {
        opacity: 0;
        transform: translateX(-80px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

/* === ADVANCED RTL & ARABIC SUPPORT === */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

[dir="rtl"], .rtl-mode {
    font-family: 'Cairo', 'Poppins', sans-serif !important;
    text-align: right;
}

[dir="rtl"] .hero-title, 
[dir="rtl"] .section-title,
[dir="rtl"] .hero-subtitle,
[dir="rtl"] .section-subtitle,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5 {
    font-family: 'Cairo', sans-serif !important;
    letter-spacing: 0 !important;
}

[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-cta-link {
    letter-spacing: 0 !important;
}

[dir="rtl"] .mega-menu {
    text-align: right !important;
}

[dir="rtl"] .mega-grid {
    direction: rtl !important;
}

[dir="rtl"] .mega-links a:hover {
    padding-left: 0;
    padding-right: 4px;
}

[dir="rtl"] .mega-title {
    letter-spacing: 0;
}

[dir="rtl"] .chevron {
    margin-right: 6px !important;
    margin-left: 0 !important;
}

[dir="rtl"] .footer-social {
    justify-content: flex-start;
}

[dir="rtl"] .footer-col,
[dir="rtl"] .footer-brand {
    text-align: right !important;
}

[dir="rtl"] .newsletter-btn {
    border-radius: 4px 0 0 4px !important;
}

[dir="rtl"] .newsletter-input {
    border-radius: 0 4px 4px 0 !important;
}

/* Fix for icons and directional elements */
[dir="rtl"] .card-arrow,
[dir="rtl"] .btn-primary::after,
[dir="rtl"] .btn-outline::after {
    display: inline-block !important;
    transform: scaleX(-1) !important;
    margin-right: 8px !important;
    margin-left: 0 !important;
}

[dir="rtl"] .counter-icon svg {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Hidden bridge elements for translation sync */
.notranslate-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Fix for sticky header and Google Translate overlap */
[dir="rtl"] .sticky-header {
    left: auto !important;
    right: 0 !important;
}

/* Zero-Interference Brand Translation Fix */
[dir='rtl'] .brand-fix, .rtl-mode .brand-fix { font-size: 0 !important; letter-spacing: 0 !important; }
[dir='rtl'] .brand-fix::after, .rtl-mode .brand-fix::after { content: attr(data-ar); font-size: 1rem; font-size: initial; font-family: 'Cairo', sans-serif !important; display: inline-block; }
[dir='rtl'] .hero-title .brand-fix::after, [dir='rtl'] .section-title .brand-fix::after { font-size: inherit !important; }

[dir='rtl'] .brand-fix::after, .rtl-mode .brand-fix::after { font-size: inherit !important; }

#google_translate_element { display: block !important; visibility: visible !important; min-width: 100px; min-height: 20px; }

[dir='rtl'] .brand-fix { color: transparent !important; position: relative; }
[dir='rtl'] .brand-fix::after { content: attr(data-ar); color: initial; color: #ca9e67; visibility: visible; position: absolute; left: 0; top: 0; white-space: nowrap; font-family: 'Cairo', sans-serif !important; font-size: 1em !important; }


/* FINAL STABLE TRANSLATION TOGGLE */
.ar-text { display: none !important; }
[dir='rtl'] .ar-text, .rtl-mode .ar-text { display: inline !important; font-family: 'Cairo', sans-serif !important; }
[dir='rtl'] .en-text, .rtl-mode .en-text { display: none !important; }

.brand-fix { font-size: inherit !important; color: inherit !important; visibility: visible !important; position: static !important; }
.brand-fix::after { display: none !important; content: none !important; }
