@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ═══════════════════════════════════════════════
   DESIGN B: INTERACTIVE MODERN — 2026 Trends
   Glassmorphism · Depth Layers · Animated Grids
   ═══════════════════════════════════════════════ */

:root {
    --navy: #332c4a;
    --gray: #918781;
    --blue: #4169E1;
    --gold: #c9a84c;
    --bg: #fafbff;
    --surface: #ffffff;
    --glass: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.3);
    --border: #e5e7f0;
    --text: #1a1a2e;
    --text-muted: #64748b;
    --gradient-primary: linear-gradient(135deg, #332c4a 0%, #4a3f6b 50%, #4169E1 100%);
    --gradient-accent: linear-gradient(135deg, #4169E1, #6366f1);
    --gradient-glow: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(65,105,225,0.06), transparent 40%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --shadow-glow: 0 0 60px rgba(65,105,225,0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── Typography ──────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.15;
    color: var(--navy);
}

h1 { font-size: clamp(2.75rem, 5.5vw, 4.5rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.125rem, 1.5vw, 1.375rem); }
p  { color: var(--text-muted); line-height: 1.7; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.section { padding: clamp(3rem, 6vw, 5rem) 0;
    position: relative;
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--blue);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.section-header { margin-bottom: clamp(3rem, 5vw, 4rem); }
.section-desc { font-size: 1.125rem; max-width: 560px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Buttons ─────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(51,44,74,0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(51,44,74,0.4);
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 50%, rgba(255,255,255,0.1) 100%);
    transition: var(--transition);
}

.btn-glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--navy);
}
.btn-glass:hover {
    background: rgba(255,255,255,0.85);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* ── Header — Glassmorphism ──────────────────── */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 96px;
    gap: 1.5rem;
}

.logo img { height: 42px; width: auto; }
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 1.25rem;   /* space between icon and text parts of logo */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    background: rgba(255,255,255,0.5);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

nav a {
    text-decoration: none;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    transition: var(--transition);
    white-space: nowrap;
    min-width: 4.5rem;
    text-align: center;
    display: inline-block;
    position: relative;
}
nav a:hover {
    color: var(--navy);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
nav a.active {
    color: var(--blue);
    font-weight: 700;
    background: rgba(65,105,225,0.06);
}
nav a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ── Language Dropdown ──────────────────────────────── */
.lang-dropdown-wrap {
    position: relative;
}
.lang-dropdown-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255,255,255,0.7);
    color: var(--navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition);
    min-width: 3.5rem;
    justify-content: space-between;
}
.lang-dropdown-btn:hover { background: var(--surface); box-shadow: var(--shadow-sm); }
.lang-dropdown-btn::after { content: '▾'; font-size: 0.625rem; opacity: 0.6; }
.lang-dropdown-list {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 200;
    min-width: 5rem;
    display: none;
}
.lang-dropdown-wrap:hover .lang-dropdown-list,
.lang-dropdown-wrap:focus-within .lang-dropdown-list { display: block; }
.lang-dropdown-list button {
    font-family: 'Outfit', sans-serif;
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    text-align: left;
    font-size: 0.8125rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.15s;
}
.lang-dropdown-list button:hover { background: var(--bg); color: var(--navy); }
.lang-dropdown-list button.active { color: var(--blue); font-weight: 700; }
/* legacy pill support (kept for i18n.js compat) */
.lang-pills { display: none; }

/* ── Hero — Layered Depth ────────────────────── */
.hero {
    background: var(--gradient-primary);
    color: #fff;
    padding: clamp(4rem, 10vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(800px circle at 20% 80%, rgba(65,105,225,0.3), transparent),
        radial-gradient(600px circle at 80% 20%, rgba(201,168,76,0.15), transparent);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h1 { color: #fff; margin-bottom: 1.5rem; }

.hero h1 .glow {
    position: relative;
    display: inline;
}
.hero h1 .glow::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    right: 0;
    height: 0.15em;
    background: var(--gold);
    border-radius: 4px;
    opacity: 0.6;
}

.hero p {
    font-size: 1.1875rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero floating stats (glassmorphism) */
.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.hero-stat {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: var(--transition);
}
.hero-stat:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.hero-stat .number {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero-stat .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

/* ── Service Cards — Depth Layers ────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.25rem 1.75rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity 0.5s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(65,105,225,0.15);
}

.service-card:hover::before { opacity: 1; }

.service-card .icon-wrap {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(65,105,225,0.08), rgba(99,102,241,0.08));
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-card .icon-wrap svg {
    width: 24px;
    height: 24px;
    stroke: var(--blue);
}

.service-card h3 { margin-bottom: 0.75rem; position: relative; z-index: 1; }
.service-card p  { font-size: 0.9375rem; margin-bottom: 1.5rem; position: relative; z-index: 1; }

.service-card .card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.service-card .card-link .arrow {
    transition: transform 0.3s ease;
}
.service-card:hover .card-link .arrow { transform: translateX(4px); }

/* ── Strengths — Bento Grid ──────────────────── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 1.25rem;
}

.bento-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bento-item:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(65,105,225,0.12);
}

.bento-item .bento-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.bento-item .bento-icon svg {
    width: 20px;
    height: 20px;
}

.bento-item h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.bento-item p  { font-size: 0.875rem; line-height: 1.6; }

/* Color variations for bento icons */
.bento-item:nth-child(1) .bento-icon { background: rgba(65,105,225,0.1); }
.bento-item:nth-child(1) .bento-icon svg { stroke: #4169E1; }
.bento-item:nth-child(2) .bento-icon { background: rgba(201,168,76,0.12); }
.bento-item:nth-child(2) .bento-icon svg { stroke: #c9a84c; }
.bento-item:nth-child(3) .bento-icon { background: rgba(51,44,74,0.08); }
.bento-item:nth-child(3) .bento-icon svg { stroke: #332c4a; }
.bento-item:nth-child(4) .bento-icon { background: rgba(34,197,94,0.08); }
.bento-item:nth-child(4) .bento-icon svg { stroke: #22c55e; }
.bento-item:nth-child(5) .bento-icon { background: rgba(168,85,247,0.08); }
.bento-item:nth-child(5) .bento-icon svg { stroke: #a855f7; }
.bento-item:nth-child(6) .bento-icon { background: rgba(14,165,233,0.08); }
.bento-item:nth-child(6) .bento-icon svg { stroke: #0ea5e9; }

/* ── Marquee / Client Logos ──────────────────── */
.marquee-section {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 4rem;
    animation: scroll 80s linear infinite;
    width: max-content;
}

.marquee-track img {
    height: 48px;
    object-fit: contain;
    filter: grayscale(0) opacity(1);
    transition: var(--transition);
}
.marquee-track img:hover { filter: grayscale(0) opacity(1); }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Certifications — Glass Cards ────────────── */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.cert-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}
.cert-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.cert-card .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.cert-card h4 { font-size: 0.9375rem; margin-bottom: 0.25rem; }
.cert-card p  { font-size: 0.8125rem; margin: 0; }

/* ── Offices ─────────────────────────────────── */
.offices-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.office-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    transition: var(--transition);
}
.office-card:hover { box-shadow: var(--shadow-md); }

.office-card.hq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: var(--radius) var(--radius) 0 0;
}

.office-card h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.0625rem;
    margin-bottom: 1rem;
}

.office-card h4 img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.hq-badge {
    font-size: 0.5625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--gradient-accent);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.office-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.office-detail svg {
    width: 16px;
    height: 16px;
    stroke: var(--gray);
    flex-shrink: 0;
    margin-top: 2px;
}

.presence-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1rem;
}

.presence-chips {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy);
    transition: var(--transition);
}

.chip img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

.chip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--blue);
}

/* ── CTA Section ─────────────────────────────── */
.cta-band {
    background: var(--gradient-primary);
    color: #fff;
    padding: clamp(4rem, 8vw, 6rem) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at 50% 50%, rgba(201,168,76,0.12), transparent);
    pointer-events: none;
}

.cta-band h2 { color: #fff; margin-bottom: 1rem; position: relative; z-index: 1; }
.cta-band p  { color: rgba(255,255,255,0.7); font-size: 1.125rem; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; }

.btn-white {
    background: #fff;
    color: var(--navy);
    font-weight: 700;
}
.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ── Footer ──────────────────────────────────── */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

footer h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

footer ul { list-style: none; }
footer li { margin-bottom: 0.5rem; }
footer a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: var(--transition);
}
footer a:hover { color: var(--blue); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p { font-size: 0.8125rem; margin: 0; }

.social-link { color: var(--text-muted); transition: var(--transition); }
.social-link:hover { color: var(--blue); }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: repeat(4, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .certs-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: 1fr; }
    .bento-grid { grid-template-columns: 1fr; }
    .certs-grid { grid-template-columns: 1fr; }
    .offices-flex { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    nav { display: none; }
}

/* ── Scroll Reveal Animations ────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Staggered children */
.stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger > .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger > .reveal:nth-child(6) { transition-delay: 0.5s; }


/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}
.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background: var(--navy);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; transform: translateX(20px); }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg); }

.nav-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;

    display: contents;
}

@media (max-width: 1100px) {
    .mobile-menu-btn { display: flex; }
    .nav-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;

        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    .nav-wrapper.active { display: flex; }
    nav { width: 100%; }
    nav ul { 
        flex-direction: column; 
        width: 100%; 
        align-items: flex-start; 
        background: transparent; 
        border: none; 
        padding: 0;
    }
    nav a { display: block; width: 100%; padding: 0.75rem 0; border-bottom: 1px solid var(--border); border-radius: 0; }
    .header-actions { width: 100%; justify-content: space-between; flex-direction: column; align-items: stretch; gap: 1rem; }
    .header-inner { flex-wrap: wrap; height: auto; padding: 1rem 0; }
}

/* Segment Cards Grid */
.segments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 1.5rem;
    padding: 0 1rem;
    margin-bottom: 4rem;
}

.segment-card {
    text-align: center;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.segment-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(65,105,225,0.15);
}

.segment-card h4 {
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.segment-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 992px) {
    .segments-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .segments-grid { grid-template-columns: 1fr; }
}

.stat-hover-text {
    position: absolute;
    inset: 0;
    background: rgba(65,105,225,0.93);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    font-size: 0.8125rem;
    color: #fff;
    line-height: 1.5;
    text-align: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: var(--radius);
}
.hero-stat { cursor: default; overflow: hidden; }
.hero-stat:hover .stat-hover-text { opacity: 1; }
.hero-stat:hover .number, .hero-stat:hover .label { opacity: 0; }
.hero-stat .number, .hero-stat .label { transition: opacity 0.25s; }

/* Office cards additional */
.office-card h4 img { height:1.1em; vertical-align:middle; margin-right:.4rem; }

/* FM Badge */
.fm-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #1a3a5c, #2563b0);
    color: #fff;
    padding: 0.4rem 1.1rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    vertical-align: middle;
}
.fm-badge::before { content: ★; color: #fbbf24; }

/* Pillar cards */
.pillars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.pillar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar-img { width: 100%; height: 280px; object-fit: cover; display: block; }
.pillar-body { padding: 2rem; }
.pillar-tag { display: inline-block; padding: .25rem .875rem; border-radius: 100px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.pillar-tag.internal { background: rgba(65,105,225,0.1); color: var(--blue); }
.pillar-tag.external { background: rgba(51,44,74,0.08); color: var(--navy); }
.pillar-features { list-style: none; margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.pillar-features li { display: flex; align-items: flex-start; gap: .5rem; font-size: .9375rem; color: var(--text-muted); }
.pillar-features li::before { content: ✓; color: var(--blue); font-weight: 700; flex-shrink: 0; }
@media(max-width:768px){ .pillars-grid { grid-template-columns: 1fr; } }

/* Service feature cards */
.service-feature-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 1.5rem; }
.service-feature-card { padding: 2rem 1.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: var(--transition); position: relative; overflow: hidden; }
.service-feature-card::before { content:''; position:absolute; top:0;left:0;right:0; height:3px; background: var(--gradient-accent); transform:scaleX(0); transform-origin:left; transition: transform 0.4s ease; }
.service-feature-card:hover::before { transform:scaleX(1); }
.service-feature-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.service-icon-wrap { width:48px;height:48px; border-radius:12px; background:rgba(65,105,225,0.1); display:flex; align-items:center; justify-content:center; margin-bottom:1rem; }
.service-icon-wrap svg { width:24px;height:24px;stroke:var(--blue); }

/* Offices 3+2 grid */
.offices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.offices-grid .office-card:nth-child(4),
.offices-grid .office-card:nth-child(5) { grid-column: auto; }
@media(max-width:900px){ .offices-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:560px){ .offices-grid { grid-template-columns: 1fr; } }

/* Process card flip */
.process-card { perspective: 1000px; min-height: 220px; cursor: default; }
.process-card-inner {
    position: relative; width: 100%; height: 100%; min-height: 220px;
    transform-style: preserve-3d; transition: transform 0.55s ease;
}
.process-card:hover .process-card-inner { transform: rotateY(180deg); }
.process-card-front, .process-card-back {
    position: absolute; inset: 0; backface-visibility: hidden;
    border-radius: var(--radius); overflow: hidden;
    padding: 1.5rem 1.25rem;
    border: 1px solid var(--border); background: var(--surface);
}
.process-card-back {
    transform: rotateY(180deg);
    padding: 0; overflow: hidden;
}
.process-card-back img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.process-card-back .back-label {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(15,20,60,0.85));
    color: #fff; padding: 1rem 1.25rem;
    font-size: 0.9375rem; font-weight: 600;
}

/* Header CTA button font match */
header a.btn {
    font-size: 1.0625rem !important;
    font-weight: 600;
}

/* ── Service Card Grid (Phase 7 redesign) ── */
.svc-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.svc-card {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.svc-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(65,105,225,0.25);
    transform: translateY(-1px);
}
.svc-card-icon {
    flex-shrink: 0;
    color: var(--blue);
    font-weight: 700;
    font-size: 1rem;
    margin-top: 0.15rem;
}
.svc-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 0.3rem;
}
.svc-card-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

.svc-cards-grid-rich {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}
.svc-card-rich {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.svc-card-rich:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}
.svc-card-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}
.svc-card-body {
    padding: 1.5rem;
    flex: 1;
}
.svc-card-body h4 {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    color: var(--navy);
}
.svc-card-body p {
    font-size: 0.875rem;
    color: var(--text);
    margin: 0;
}

/* 
=========== CUSTOM REVISIONS: HEADER =========== 
*/

/* 1. Logo Scaling */
.header-inner .logo img {
    height: 72px !important; 
    width: auto;
}

/* 2. Header Alignment and Dropdown Visuals */
.header-inner {
    align-items: center; 
}

.lang-dropdown-btn {
    font-size: 0.8125rem !important; /* Match navigation links */
    font-weight: 500;
}

/* 3. Dead Zone elimination */
.lang-dropdown-wrap {
    padding-bottom: 15px;
    margin-bottom: -15px;
}
.lang-dropdown-list {
    top: 100% !important; /* Start strictly below the wrapper padding */
    margin-top: 0 !important; /* Remove any gaps */
    padding-top: 0 !important;
}



/* =========================================
   CUSTOM REVISIONS: MOBILE LAYOUT 
========================================= */

/* 1. Mobile Drawer Navigation */
@media (max-width: 900px) {
    /* Hamburger positioning above drawer */
    .mobile-menu-btn {
        margin-left: auto;
        position: relative;
        z-index: 1002 !important; 
        display: block !important;
    }

    /* Override normal wrapper to become a fixed drawer on right */
    .nav-wrapper {
        position: fixed !important;
        top: 0 !important;
        right: -100%; /* Slide-out state */
        width: 80% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: var(--surface) !important;
        box-shadow: -8px 0 30px rgba(0,0,0,0.15) !important;
        z-index: 1001 !important;
        padding: 5rem 2rem 2rem !important;
        display: flex !important; /* Always flex for transition */
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2rem !important;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .nav-wrapper.active {
        right: 0 !important;
    }

    /* Make Nav visible inside Drawer */
    .nav-wrapper nav {
        display: block !important;
        width: 100%;
    }
    .nav-wrapper nav ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
    }
    .nav-wrapper nav a {
        font-size: 1.25rem !important;
        padding: 1rem 0 !important;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        border-radius: 0 !important;
        text-align: left !important;
        width: 100% !important;
    }
    
    .lang-dropdown-list {
        position: static !important;
        box-shadow: none !important;
        width: 100% !important;
        display: none;
    }
    
    .lang-dropdown-wrap.active .lang-dropdown-list,
    .lang-dropdown-wrap:focus-within .lang-dropdown-list {
        display: block !important;
    }
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.process-grid .process-card:nth-child(1),
.process-grid .process-card:nth-child(2),
.process-grid .process-card:nth-child(3) {
    grid-column: span 2;
}

.process-grid .process-card:nth-child(4) {
    grid-column: 2 / 4;
}

.process-grid .process-card:nth-child(5) {
    grid-column: 4 / 6;
}

/* Adjust flip card structural heights to guarantee text never overflows */
.process-card, .process-card-inner {
    min-height: 340px !important; 
}

@media (max-width: 992px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .process-grid .process-card {
        grid-column: auto !important;
    }
    .process-card, .process-card-inner {
        min-height: 280px !important;
    }
}

@media (max-width: 560px) {
    .process-grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }
    .process-grid .process-card {
        grid-column: auto !important;
    }
}

/* Hamburger Icon Geometry */
@media (max-width: 900px) {
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px !important;
        height: 21px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer;
        z-index: 1002 !important;
        margin-left: auto;
        padding: 0 !important;
    }
    .mobile-menu-btn span {
        display: block !important;
        width: 100% !important;
        height: 3px !important;
        background: var(--navy, #1a3a5c) !important;
        border-radius: 3px !important;
        transition: all 0.3s ease !important;
    }
    .mobile-menu-btn.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}
@media (min-width: 901px) {
    .mobile-menu-btn { display: none !important; }
}


/* 2 Cards per row centered for Financial Reporting */
.financial-grid {
    grid-template-columns: repeat(2, minmax(280px, 450px)) !important;
    justify-content: center;
}

@media (max-width: 768px) {
    .financial-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Hamburger Icon Geometry */
@media (max-width: 900px) {
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px !important;
        height: 21px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer;
        z-index: 1002 !important;
        margin-left: auto;
        padding: 0 !important;
    }
    .mobile-menu-btn span {
        display: block !important;
        width: 100% !important;
        height: 3px !important;
        background: var(--navy, #1a3a5c) !important;
        border-radius: 3px !important;
        transition: all 0.3s ease !important;
    }
    .mobile-menu-btn.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}
@media (min-width: 901px) {
    .mobile-menu-btn { display: none !important; }
}

/* Anti-FOUC for i18n */
html.i18n-loading body {
    opacity: 0 !important;
}
html body {
    transition: opacity 0.3s ease;
}

/* Page Transition Logic */
html.page-loading body {
    opacity: 0 !important;
    transform: translateY(12px) !important;
}
html body {
    transition: opacity 0.6s cubic-bezier(0.2, 0, 0, 1), transform 0.6s cubic-bezier(0.2, 0, 0, 1) !important;
}
