/* ========== Variables ========== */
:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-light: #3b82f6;
    --navy: #0a1628;
    --navy-2: #0f1e36;
    --navy-3: #142849;
    --text: #1f2937;
    --muted: #6b7280;
    --light: #f3f4f6;
    --white: #ffffff;
    --border: #e5e7eb;
    --radius: 10px;
    --container: 1200px;
    --shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* ========== Reset / Base ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-blue { color: var(--blue); }

/* ========== Animations ========== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes float {
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(20px,-30px) scale(1.05); }
}
@keyframes floatAlt {
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(-25px,20px) scale(.95); }
}
@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(37,99,235,.45); }
    50%     { box-shadow: 0 0 0 10px rgba(37,99,235,0); }
}
@keyframes scrollDown {
    0%   { transform: translateY(0); opacity: 1; }
    80%  { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}
@keyframes flagPulse {
    0%,100% { transform: scale(1); }
    50%     { transform: scale(1.06); }
}

/* Hero entrance (plays immediately) */
.anim-fade {
    opacity: 0;
    animation: fadeUp .85s cubic-bezier(.2,.7,.2,1) forwards;
    animation-delay: var(--d, 0s);
}

/* Scroll-reveal (waits for IntersectionObserver) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--d, 0s);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .anim-fade, .reveal { animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 1.6rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .95rem;
    transition: all .25s ease;
    border: 2px solid transparent;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn i { transition: transform .25s ease; }
.btn:hover i.fa-arrow-right { transform: translateX(4px); }
.btn:hover i.fa-paper-plane { transform: translateX(3px) translateY(-3px) rotate(-15deg); }
.btn:hover i.fa-arrow-up-right-from-square { transform: translate(2px,-2px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,99,235,.4); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-outline-blue { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline-blue:hover { background: var(--blue); color: #fff; }
.btn-block { width: 100%; justify-content: center; }
.btn-cta { padding: .7rem 1.3rem; }

/* ========== Header ========== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background .3s ease;
}
.header.scrolled { background: rgba(10, 22, 40, 0.98); box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem; padding-bottom: 1rem;
}
.logo { display: flex; align-items: center; gap: .6rem; color: #fff; }
.logo-mark {
    background: var(--blue);
    color: #fff;
    font-weight: 800;
    padding: .35rem .55rem;
    border-radius: 6px;
    font-size: 1rem;
    letter-spacing: .5px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 1.05rem; letter-spacing: .5px; }
.logo-text small { font-size: .55rem; letter-spacing: 1.5px; opacity: .75; }

.nav { display: flex; gap: 2rem; }
.nav-link {
    color: rgba(255,255,255,.85);
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s;
    position: relative;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 50%;
    transform: translateX(-50%);
    width: 6px; height: 6px;
    background: var(--blue);
    border-radius: 50%;
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; transition: .3s; }

/* ========== Hero ========== */
.hero {
    padding-top: 80px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .55;
}
.shape-1 {
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(37,99,235,.7), transparent 70%);
    top: -80px; left: -80px;
    animation: float 14s ease-in-out infinite;
}
.shape-2 {
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(99,102,241,.5), transparent 70%);
    top: 30%; right: 8%;
    animation: floatAlt 16s ease-in-out infinite;
}
.shape-3 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(59,130,246,.6), transparent 70%);
    bottom: 15%; left: 25%;
    animation: float 18s ease-in-out infinite;
    animation-delay: -4s;
}
.shape-4 {
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(96,165,250,.45), transparent 70%);
    bottom: -40px; right: 30%;
    animation: floatAlt 12s ease-in-out infinite;
    animation-delay: -2s;
}
.hero > .container, .hero > .country-bar { position: relative; z-index: 1; }

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 110px; left: 50%;
    transform: translateX(-50%);
    width: 26px; height: 42px;
    border: 2px solid rgba(255,255,255,.4);
    border-radius: 13px;
    z-index: 2;
    transition: border-color .2s;
}
.scroll-indicator:hover { border-color: #fff; }
.scroll-indicator span {
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scrollDown 1.8s ease-in-out infinite;
}
@media (max-width: 992px) {
    .scroll-indicator { display: none; }
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 540px;
    padding: 4rem 1.5rem;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(37,99,235,.18);
    border: 1px solid rgba(37,99,235,.4);
    color: #fff;
    padding: .45rem 1rem;
    border-radius: 100px;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.hero-badge i { color: #fbbf24; }

.hero-title {
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}
.hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,.8);
    margin-bottom: 2rem;
    max-width: 480px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
    position: relative;
    height: 400px;
    border-radius: 14px;
    background-image:
        linear-gradient(135deg, rgba(10,22,40,.3), rgba(10,22,40,.1)),
        url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1200&q=75');
    background-size: cover;
    background-position: center;
    box-shadow: 0 25px 70px rgba(0,0,0,.5);
    transition: transform .15s ease-out;
}

/* ========== Country Bar ========== */
.country-bar {
    background: var(--navy-2);
    border-top: 1px solid rgba(255,255,255,.05);
    padding: 1.25rem 0;
}
.country-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: center;
}
.country { display: flex; align-items: center; gap: .85rem; color: #fff; }
.country strong { display: block; font-size: 1rem; }
.country small { display: block; font-size: .8rem; color: rgba(255,255,255,.7); }
.flag {
    width: 38px; height: 38px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    transition: transform .3s ease;
}
.country:hover .flag { animation: flagPulse 1.2s ease-in-out infinite; }
.flag-us { background-image: url('https://flagcdn.com/w80/us.png'); }
.flag-ca { background-image: url('https://flagcdn.com/w80/ca.png'); }
.flag-au { background-image: url('https://flagcdn.com/w80/au.png'); }
.flag-uk { background-image: url('https://flagcdn.com/w80/gb.png'); }

/* ========== Pillars ========== */
.pillars { padding: 4rem 0; background: #fff; border-bottom: 1px solid var(--border); }
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.pillar {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius);
    transition: all .3s;
}
.pillar:hover { background: #f8fafc; transform: translateY(-4px); }
.pillar i {
    font-size: 1.6rem;
    color: var(--blue);
    background: rgba(37,99,235,.1);
    width: 64px; height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center; justify-content: center;
    margin-bottom: 1rem;
    transition: transform .4s cubic-bezier(.34,1.56,.64,1), background .3s;
}
.pillar:hover i {
    transform: translateY(-6px) scale(1.08) rotate(-6deg);
    background: var(--blue);
    color: #fff;
    animation: pulse 1.5s ease-out infinite;
}
.pillar h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: .65rem; }
.pillar p { color: var(--muted); font-size: .95rem; }

/* ========== Sections ========== */
.section { padding: 5rem 0; }
.section-light { background: #f8fafc; }
.section-sub {
    text-align: center;
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto 3rem;
    font-size: 1rem;
}
.eyebrow {
    text-align: center;
    color: var(--blue);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: 2px;
    margin-bottom: .75rem;
}
.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--navy);
}

/* ========== Filter Tabs ========== */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.tab {
    padding: .65rem 1.4rem;
    border-radius: 8px;
    font-weight: 500;
    color: var(--muted);
    font-size: .9rem;
    transition: all .2s;
}
.tab:hover { color: var(--blue); }
.tab.active { background: var(--blue); color: #fff; }

/* ========== Projects Grid ========== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.project-card {
    display: block;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
    transition: transform .35s ease, box-shadow .35s ease;
}
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(10,22,40,.18);
}
.project-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.project-card:hover img { transform: scale(1.1); }
.project-overlay {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 40px; height: 40px;
    background: var(--blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(.6) rotate(-45deg);
    transition: all .35s cubic-bezier(.34,1.56,.64,1);
    z-index: 2;
    font-size: .9rem;
}
.project-card:hover .project-overlay {
    opacity: 1;
    transform: scale(1) rotate(0);
}
.project-meta {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.25rem;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 100%);
}
.project-meta h3 { font-size: 1rem; font-weight: 600; margin-bottom: .15rem; }
.project-meta p { font-size: .8rem; opacity: .85; }
.project-tag {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: .2rem .6rem;
    border-radius: 4px;
    margin-bottom: .5rem;
    text-transform: uppercase;
}
.project-card.hidden { display: none; }

/* ========== Jurisdictions ========== */
.juris-block { margin-bottom: 2.5rem; }
.juris-block.compact { margin-bottom: 0; }
.juris-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--border);
}
.juris-head h3 {
    font-size: 1.15rem;
    color: var(--navy);
    font-weight: 700;
}
.juris-head h3 small {
    font-size: .85rem;
    font-weight: 500;
    color: var(--muted);
    margin-left: .35rem;
}
.juris-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.juris-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: .45rem .85rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 600;
    color: var(--navy);
    font-size: .85rem;
    opacity: 0;
    transform: translateY(8px) scale(.92);
    animation: fadeUp .5s cubic-bezier(.2,.7,.2,1) forwards;
    animation-delay: var(--d, 0s);
    animation-play-state: paused;
    transition: background .2s, color .2s, border-color .2s, box-shadow .25s;
}
.reveal.is-visible .juris-pill,
.juris-block.reveal.is-visible .juris-pill {
    animation-play-state: running;
}
.juris-pill:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    box-shadow: 0 6px 14px rgba(37,99,235,.3);
    transform: translateY(-3px) scale(1.05);
}
.juris-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* ========== Testimonials ========== */
.testimonials {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e0e7ff 100%);
}
.testimonials .eyebrow { margin-bottom: 1rem; }

.freelancer-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 60%, #1e3a8a 100%);
    color: #fff;
    border-radius: 14px;
    padding: 1.75rem 2rem;
    box-shadow: 0 20px 50px rgba(10,22,40,.25);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}
.banner-glow {
    position: absolute;
    top: -80px; right: -80px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(37,99,235,.5) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.banner-glow-2 {
    top: auto; bottom: -100px;
    right: auto; left: 30%;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(99,102,241,.25) 0%, transparent 70%);
}
.freelancer-banner > *:not(.banner-glow) { position: relative; z-index: 1; }

.banner-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.banner-brand {
    display: flex;
    align-items: center;
    gap: .85rem;
}
.verified-logo-wrap {
    width: 44px; height: 44px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.verified-logo-wrap .brand-icon { width: 22px; height: 22px; }
.banner-brand small {
    display: block;
    font-size: .65rem;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,.6);
    margin-bottom: .15rem;
}
.banner-brand h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.banner-cta { white-space: nowrap; }

.banner-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.banner-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    transition: all .25s ease;
    backdrop-filter: blur(6px);
}
.banner-stat:hover {
    background: rgba(255,255,255,.09);
    border-color: rgba(37,99,235,.5);
    transform: translateY(-3px);
}
.banner-stat i {
    font-size: 1.25rem;
    color: #fbbf24;
    background: rgba(251,191,36,.12);
    width: 44px; height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.banner-stat strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: .15rem;
}
.banner-stat span {
    font-size: .8rem;
    color: rgba(255,255,255,.7);
    font-weight: 500;
}

.btn-light {
    background: #fff;
    color: var(--navy);
    border: 0;
}
.btn-light:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,99,235,.4);
}
.brand-icon {
    width: 24px; height: 24px;
    flex-shrink: 0;
}
.brand-icon-inline {
    width: 18px; height: 18px;
    vertical-align: middle;
    margin-right: .5rem;
    background: rgba(37,99,235,.1);
    border-radius: 50%;
    padding: 8px;
    box-sizing: content-box;
}
.social-svg {
    width: 16px; height: 16px;
    filter: brightness(0) invert(1);
}

/* Slider */
.slider {
    position: relative;
    padding: 0 0 3rem;
}
.slider-viewport {
    overflow: hidden;
    border-radius: var(--radius);
}
.slider-track {
    display: flex;
    align-items: stretch;
    transition: transform .5s ease;
    will-change: transform;
}
.slide {
    flex: 0 0 calc(33.3333% - 1rem);
    margin-right: 1.5rem;
    display: flex;
}
.slide:last-child { margin-right: 0; }

.testimonial {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    width: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.stars {
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: .95rem;
}
.testimonial blockquote {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 1.5rem;
    font-style: italic;
    flex-grow: 1;
}
.testimonial figcaption strong {
    display: block;
    color: var(--navy);
    font-size: 1rem;
    margin-bottom: .15rem;
}
.testimonial figcaption span {
    display: block;
    color: var(--muted);
    font-size: .85rem;
    margin-bottom: .35rem;
}
.testimonial figcaption small {
    display: block;
    color: var(--blue);
    font-size: .78rem;
    font-weight: 500;
}

.kpi-list { margin-bottom: 1.25rem; }
.kpi-list li {
    display: flex;
    justify-content: space-between;
    padding: .5rem 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: .9rem;
    color: rgba(255,255,255,.85);
}
.kpi-list li:last-child { border-bottom: 0; }
.kpi-list li strong { color: var(--blue-light); font-weight: 700; }
.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }

.slider-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    z-index: 5;
    transition: background .2s, transform .2s;
}
.slider-arrow:hover { background: var(--blue-dark); transform: translateY(-50%) scale(1.05); }
.slider-arrow.prev { left: -10px; }
.slider-arrow.next { right: -10px; }
.slider-arrow:disabled { opacity: .35; cursor: not-allowed; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 1.5rem;
}
.slider-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: rgba(10,22,40,.2);
    transition: all .2s;
}
.slider-dot.active { background: var(--blue); width: 24px; border-radius: 100px; }

.btn-cta-icon { font-size: .7rem; opacity: .8; }

/* ========== Stats ========== */
.stats {
    background: #f1f5f9;
    padding: 2.5rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: center;
}
.stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}
.stat i { font-size: 2rem; color: var(--blue); }
.stat strong { display: block; font-size: 1.75rem; font-weight: 700; color: var(--navy); }
.stat span { font-size: .85rem; color: var(--muted); }

/* ========== Services ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}
.service-card {
    position: relative;
    aspect-ratio: 1/1.15;
    border-radius: var(--radius);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    transition: transform .3s ease;
    isolation: isolate;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.15) 100%);
    z-index: -1;
    transition: background .3s;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(10,22,40,.25);
}
.service-card:hover::before { background: linear-gradient(to top, rgba(37,99,235,.9) 0%, rgba(37,99,235,.5) 100%); }
.service-card i {
    font-size: 1.6rem;
    margin-bottom: .65rem;
    background: rgba(255,255,255,.18);
    width: 44px; height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
    transition: all .45s cubic-bezier(.34,1.56,.64,1);
}
.service-card:hover i {
    transform: rotate(360deg) scale(1.15);
    background: #fff;
    color: var(--blue);
}
.service-card h4 { font-size: .9rem; font-weight: 600; line-height: 1.3; }

/* ========== About ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-grid .eyebrow, .contact-grid .eyebrow { text-align: left; }
.lead { font-size: 1.05rem; color: var(--muted); margin-bottom: 1.5rem; }
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .85rem;
    color: var(--text);
}
.check-list i { color: var(--blue); margin-top: .25rem; }
.about-image {
    height: 420px;
    border-radius: var(--radius);
    background-image: url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?w=1000&q=75');
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    transition: transform .6s ease;
}
.about-image:hover {
    transform: scale(1.02);
}

/* ========== Steps ========== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}
.steps-grid::before {
    content: '';
    position: absolute;
    top: 56px; left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--blue) 0 6px, transparent 6px 14px);
    opacity: .35;
    z-index: 0;
}
.step {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    transition: all .35s cubic-bezier(.2,.7,.2,1);
    text-align: center;
    position: relative;
    z-index: 1;
}
.step:hover {
    border-color: var(--blue);
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(37,99,235,.15);
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 6px 14px rgba(37,99,235,.35);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.step:hover .step-num { transform: scale(1.1) rotate(-8deg); }
.step h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; color: var(--navy); }
.step p { color: var(--muted); font-size: .9rem; }
@media (max-width: 992px) {
    .steps-grid::before { display: none; }
}

/* ========== Contact ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

/* New contact CTA cards */
.contact-cta-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}
.contact-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease;
}
.contact-card.primary {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 60%, #1e3a8a 100%);
    color: #fff;
    box-shadow: 0 18px 45px rgba(10,22,40,.25);
}
.contact-card.primary:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(37,99,235,.35);
}
.contact-card.secondary {
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(10,22,40,.05);
}
.contact-card.secondary:hover {
    transform: translateY(-4px);
    border-color: var(--blue);
    box-shadow: 0 18px 40px rgba(37,99,235,.12);
}
.contact-card-glow {
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(37,99,235,.45) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.contact-card > *:not(.contact-card-glow) { position: relative; z-index: 1; }

.contact-card-icon {
    width: 56px; height: 56px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-card-icon img.brand-icon { width: 28px; height: 28px; }
.contact-card-icon.alt {
    background: rgba(37,99,235,.1);
    border: 1px solid rgba(37,99,235,.18);
    color: var(--blue);
    font-size: 1.4rem;
}

.contact-card-body small {
    display: block;
    font-size: .7rem;
    letter-spacing: 1.5px;
    margin-bottom: .35rem;
    opacity: .7;
    font-weight: 600;
}
.contact-card.primary .contact-card-body small { color: rgba(255,255,255,.7); }
.contact-card.secondary .contact-card-body small { color: var(--blue); }

.contact-card-body h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: .65rem;
    color: inherit;
}
.contact-card.secondary .contact-card-body h3 { color: var(--navy); }

.contact-card-body p {
    font-size: .95rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}
.contact-card.primary .contact-card-body p { color: rgba(255,255,255,.85); }

.contact-card-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-weight: 600;
    color: #fff;
    border-bottom: 2px solid rgba(255,255,255,.4);
    padding-bottom: .35rem;
    transition: gap .25s ease, border-color .25s ease;
}
.contact-card.primary:hover .contact-card-link {
    gap: .85rem;
    border-color: #fff;
}

.contact-direct-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: .25rem;
}
.contact-direct-list li {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--text);
    font-size: .95rem;
}
.contact-direct-list li i {
    color: var(--blue);
    background: rgba(37,99,235,.08);
    width: 32px; height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .85rem;
}
.contact-direct-list a {
    color: var(--text);
    transition: color .2s;
}
.contact-direct-list a:hover { color: var(--blue); }
.contact-info { margin-top: 1.5rem; }
.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin-bottom: 1rem;
    color: var(--text);
}
.contact-info i {
    color: var(--blue);
    background: rgba(37,99,235,.1);
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center; justify-content: center;
    flex-shrink: 0;
}

.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: .4rem;
    font-size: .9rem;
    color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: .95rem;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 0;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37,99,235,.18);
    transform: translateY(-1px);
}
.form-group input,
.form-group select,
.form-group textarea {
    transition: border-color .2s, box-shadow .25s, transform .25s;
}
.form-group textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; top: -9999px; }
.form-flash {
    padding: .9rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: .9rem;
}
.form-flash.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-flash.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ========== CTA ========== */
.cta {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
    color: #fff;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 80% 50%, rgba(37,99,235,.15) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(37,99,235,.1) 0%, transparent 50%);
}
.cta > .container { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; margin-bottom: .75rem; }
.cta p { color: rgba(255,255,255,.8); margin-bottom: 1.75rem; }

/* ========== Footer ========== */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,.75);
    padding: 4rem 0 0;
    position: relative;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.3fr 1.4fr;
    gap: 2.5rem;
}
.logo-light { color: #fff; margin-bottom: 1rem; }
.footer-about { font-size: .9rem; line-height: 1.6; margin-bottom: 1.25rem; }
.socials { display: flex; gap: .65rem; }
.socials a {
    width: 36px; height: 36px;
    background: var(--blue);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center; justify-content: center;
    transition: background .2s;
    font-size: .9rem;
}
.socials a:hover { background: var(--blue-dark); }

.footer-fl-btn {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: #fff;
    padding: .85rem 1.25rem;
    border-radius: 10px;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 8px 20px rgba(37,99,235,.25);
}
.footer-fl-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(37,99,235,.4);
    color: #fff;
}
.footer-fl-btn .brand-icon {
    width: 22px; height: 22px;
    flex-shrink: 0;
}
.footer-fl-btn span {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.footer-fl-btn small {
    font-size: .6rem;
    letter-spacing: 1.2px;
    opacity: .75;
    margin-bottom: .15rem;
}
.footer-fl-btn strong { font-size: .95rem; font-weight: 700; }
.footer-fl-btn i {
    font-size: .8rem;
    opacity: .85;
    transition: transform .25s ease;
}
.footer-fl-btn:hover i { transform: translate(2px,-2px); }

.footer h5 {
    color: #fff;
    font-size: .85rem;
    letter-spacing: 1.5px;
    margin-bottom: 1.25rem;
    font-weight: 700;
}
.footer ul li { margin-bottom: .65rem; font-size: .9rem; }
.footer ul li a { transition: color .2s; }
.footer ul li a:hover { color: var(--blue-light); }

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    line-height: 1.4;
}
.contact-list i { color: var(--blue); margin-top: .3rem; flex-shrink: 0; }

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,.08);
    text-align: center;
    font-size: .85rem;
}

.back-top {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 42px; height: 42px;
    background: var(--blue);
    color: #fff;
    border-radius: 8px;
    display: inline-flex;
    align-items: center; justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all .3s;
    z-index: 999;
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--blue-dark); }

/* ========== Responsive ========== */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { height: 300px; }
    .country-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .pillars-grid { grid-template-columns: 1fr; gap: 1rem; }
    .banner-stats { grid-template-columns: repeat(2, 1fr); }
    .juris-row { grid-template-columns: 1fr; }
    .slide { flex: 0 0 calc(50% - .75rem); }
    .contact-cta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .nav.open {
        display: flex;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        background: var(--navy);
        padding: 1.25rem 1.5rem;
        gap: 1rem;
        border-top: 1px solid rgba(255,255,255,.05);
    }
    .nav.open .nav-link {
        align-self: flex-start;
        padding-left: .9rem;
        position: relative;
    }
    .nav.open .nav-link.active::after {
        bottom: auto;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        width: 5px;
        height: 5px;
    }
    .btn-cta { display: none; }
    .nav-toggle { display: flex; }
    .hero-actions .btn { flex: 1; justify-content: center; }
    .form-row { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: 1fr; }
    .stat { justify-content: flex-start; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 3.5rem 0; }
    .slide { flex: 0 0 100%; margin-right: 1rem; }
    .slider-arrow.prev { left: 0; }
    .slider-arrow.next { right: 0; }
    .freelancer-banner { padding: 1.25rem; }
    .banner-top { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .banner-cta { width: 100%; justify-content: center; }
    .banner-stats { grid-template-columns: 1fr; gap: .65rem; }
}

@media (max-width: 480px) {
    .projects-grid { grid-template-columns: 1fr; }
    .country-grid { grid-template-columns: 1fr; }
    .filter-tabs { gap: .35rem; }
    .tab { padding: .5rem 1rem; font-size: .85rem; }
}
