/* --- Enterprise Agency Audit Overrides --- */

/* ============================================================
   SUBHEADER / HERO SECTION GRADIENT
   Matches the Seoly reference exactly: soft primary-to-secondary
   gradient covering the ENTIRE header background, with plain text subtitle.
   ============================================================ */
#subheader, #subheader.s2 {
    background: linear-gradient(135deg, rgb(71 134 238 / 28%) 0%, rgb(255 120 81 / 34%) 100%) !important;
    position: relative;
    border: none !important;
}

/* Hide the old image background so the gradient shines through */
#subheader .jarallax-img,
#subheader.s2 .jarallax-img {
    display: none !important;
}

/* Reset subtitle back to plain text, matching Seoly 'Rank Higher' */
.subtitle.s2 {
    color: #d19404 !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: inline-block !important;
    font-size: 14px !important;
    letter-spacing: 0.1em !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
}

/* Global Typography */
body, p, .lead {
    line-height: 1.6 !important;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    letter-spacing: -0.03em !important;
}

/* Uppercase Subheadings / Eyebrows */
.subtitle, .subtitle-pill {
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
}

/* Image Optimization (CLS Fix) */
img {
    height: auto !important;
}

/* Hover Physics (GPU Accelerated) */
.btn-main, 
.premium-link, 
.premium-service-card,
.premium-process-icon {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

/* Smooth transformations */
.premium-service-card:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
}

/* Glassmorphism & Depth */
.premium-service-card {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

/* Header Glassmorphism */
header.header-light {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Pill Buttons */
.btn-main {
    border-radius: 9999px !important;
}

/* ============================================================
   CLIENT LOGO MARQUEE (DRAGGABLE)
   ============================================================ */
.client-marquee-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    cursor: grab;
    padding: 30px 0;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.02) inset;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.client-marquee-wrapper:active {
    cursor: grabbing;
}
.client-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    will-change: transform;
}
.client-logo-item {
    height: 60px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    margin: 0 40px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.4s ease, opacity 0.4s ease;
    user-select: none;
    -webkit-user-drag: none;
    
}
.client-marquee-wrapper:hover .client-logo-item {
    opacity: 0.5; /* dim others slightly */
}
.client-marquee-wrapper .client-logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 768px) {
    .client-logo-item {
        height: 40px;
        max-width: 120px;
        margin: 0 25px;
    }
}


/* ============================================================
   RESPONSIVE LAYOUT FIXES
   ============================================================ */
@media (max-width: 992px) {
    /* Fix: Hide main menu on mobile until opened by hamburger icon */
    header:not(.menu-open) #mainmenu {
        display: none !important;
    }
}


@media (max-width: 480px) {
    .gsap-svc-card {
        flex: 0 0 85vw !important;
        width: 85vw !important;
        padding: 30px 24px !important;
    }
}

/* ============================================================
   BREADCRUMB / CRUMB REFINEMENTS (GLOBAL)
   ============================================================ */
.crumb-wrapper {
    margin-top: 8px;
}

.crumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.crumb li {
    display: inline-flex;
    align-items: center;
    color: #555;
}

.crumb li a {
    color: #1d3f83;
    text-decoration: none;
    transition: color 0.3s ease;
}

.crumb li a:hover {
    color: #d19404;
}

.crumb li + li::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free', 'FontAwesome';
    font-weight: 900;
    font-size: 9px;
    color: #aaa;
    margin: 0 10px;
}

.crumb li.active {
    color: #333;
    font-weight: 600;
}

/* Subheader Hero Image Polish */
#subheader .w-40 img,
#subheader .w-50 img {
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

/* Mobile breadcrumb adjustments */
@media (max-width: 768px) {
    .crumb {
        font-size: 12px;
    }
    .crumb li + li::before {
        margin: 0 6px;
        font-size: 8px;
    }
    #subheader h1 {
        font-size: 32px !important;
    }
}

@media (max-width: 480px) {
    #subheader h1 {
        font-size: 26px !important;
    }
    .subtitle.s2 {
        font-size: 12px !important;
    }
}
