
/* ==========================================
   EXPERT GROUP — PREMIUM CORPORATE EXPERIENCE
   ========================================== */

:root {
    --eg-orange: #F47B20;
    --eg-navy: #10243A;
    --eg-black: #101214;
    --eg-white: #ffffff;
    --eg-muted: #687383;
    --eg-light: #f5f7fa;
    --eg-border: rgba(16, 36, 58, .10);
    --eg-radius: 18px;
    --eg-shadow: 0 18px 55px rgba(16, 36, 58, .10);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    overflow-x: hidden;
    background: var(--eg-white);
    color: var(--eg-black);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--eg-border);
    transition: box-shadow .3s ease;
}

.site-header.scrolled {
    box-shadow: 0 8px 30px rgba(16,36,58,.09);
}

.site-header a,
.nav-links a {
    transition: color .25s ease, opacity .25s ease;
}

.nav-links a:hover {
    color: var(--eg-orange);
}

/* Buttons */
.btn,
.button,
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 23px;
    border-radius: 7px;
    background: var(--eg-orange);
    color: white;
    font-weight: 700;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease,
                background .25s ease;
}

.btn:hover,
.button:hover,
a.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(244,123,32,.25);
}

/* Hero */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        110deg,
        rgba(8, 22, 37, .94) 0%,
        rgba(16, 36, 58, .82) 55%,
        rgba(16, 36, 58, .35) 100%
    );
}

.hero h1 {
    animation: egHeroText .9s both;
    letter-spacing: -1.8px;
}

.hero p {
    animation: egHeroText 1.1s both;
}

.hero .btn {
    animation: egHeroText 1.3s both;
}

/* Section spacing */
section {
    position: relative;
}

.section,
.section-padding {
    padding-top: 95px;
    padding-bottom: 95px;
}

section h2 {
    color: var(--eg-navy);
    letter-spacing: -1px;
}

/* Small orange accent */
.section-label,
.eyebrow,
.subtitle {
    color: var(--eg-orange);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Division cards */
.division-card,
.company-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--eg-border);
    border-radius: var(--eg-radius);
    background: white;
    box-shadow: 0 5px 25px rgba(16,36,58,.045);
    transition: transform .35s ease, box-shadow .35s ease,
                border-color .35s ease;
}

.division-card:hover,
.company-card:hover {
    transform: translateY(-9px);
    border-color: rgba(244,123,32,.4);
    box-shadow: var(--eg-shadow);
}

.division-card img,
.company-card img {
    transition: transform .6s cubic-bezier(.2,.8,.2,1);
}

.division-card:hover img,
.company-card:hover img {
    transform: scale(1.06);
}

/* General image treatment */
img {
    max-width: 100%;
    height: auto;
}

/* About and company sections */
.about-section,
.group-section {
    background: var(--eg-light);
}

.company-card a,
.division-card a {
    color: var(--eg-orange);
    font-weight: 700;
    text-decoration: none;
}

/* Footer */
footer,
.site-footer {
    background: var(--eg-navy);
    color: rgba(255,255,255,.78);
}

footer a,
.site-footer a {
    color: white;
    text-decoration: none;
    transition: color .2s ease;
}

footer a:hover,
.site-footer a:hover {
    color: var(--eg-orange);
}

/* Scroll reveal */
.eg-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .75s ease, transform .75s ease;
}

.eg-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered card entrance */
.eg-reveal:nth-child(2) { transition-delay: .08s; }
.eg-reveal:nth-child(3) { transition-delay: .16s; }
.eg-reveal:nth-child(4) { transition-delay: .24s; }
.eg-reveal:nth-child(5) { transition-delay: .32s; }

/* Motion */
@keyframes egHeroText {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .section,
    .section-padding {
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .hero h1 {
        letter-spacing: -.8px;
    }

    .division-card:hover,
    .company-card:hover {
        transform: translateY(-4px);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

    .eg-reveal {
        opacity: 1;
        transform: none;
    }
}
