﻿body {
    font-family: 'Inter', sans-serif;
    color: #333;
}

.bg-purple {
    background-color: #6f42c1;
}

.text-purple {
    color: #6f42c1;
}

/* Ensure the navbar is always the top layer */
.navbar {
    z-index: 1050; /* Higher than standard Bootstrap sections */
    position: relative;
}

/* Fix for dropdowns being cut off by parent containers */
.nav-item.dropdown {
    position: relative !important; /* Allows the menu to position relative to the navbar, not the link */
}

/* Ensure the menu actually sits on top of sections */
/* 3. Style and elevate the menu */
.dropdown-menu {
    position: absolute;
    z-index: 1100;
    display: none; /* Managed by Bootstrap's JS */
    min-width: 200px;
    padding: 0.5rem 0;
    margin: 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 0; /* Remove default border */
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Adds the "floating" effect */
}

    /* 4. Ensure it clears the header height */
    .dropdown-menu.show {
        display: block;
        top: 100%; /* Positions it exactly at the bottom of the nav bar */
        left: 0;
    }

/* Use a more specific selector to override Bootstrap's nav-link colors */
.navbar-nav .nav-item .btn-purple {
    background-color: #6f42c1;
    color: white !important; /* Force white text */
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: bold;
    border: 2px solid transparent; /* Prevents the "jump" by pre-calculating the border space */
    transition: all 0.2s ease-in-out; /* Smooths the hover transition */
    display: inline-block;
}

    .navbar-nav .nav-item .btn-purple:hover {
        background-color: #5a2d9c;
        color: white !important;
        border: 2px solid #5a2d9c; /* Keeps dimensions the same as the base state */
        /*transform: translateY(-1px);*/ /* Optional: a subtle upward lift instead of a "jump" */
    }

.section-padding {
    padding: 80px 0;
}

.card-hover:hover {
/*    transform: translateY(-5px);*/
    transition: 0.3s;
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
}


/* Marketing-specific styles */
:root {
    --mt-purple: #6f42c1;
    --mt-purple-dark: #5a2d9c;
    --mt-teal: #20c997;
}

/* Rounded, soft design language */
.card-magic, .card-hover {
    border-radius: 1.25rem;
    transition: all 0.3s ease;
}

    .card-magic.card-hover:hover,
    .card-magic:hover {
        transform: none !important; /* This stops the 'jumping' */
        /* Instead, use a subtle glow and border to indicate focus */
        box-shadow: 0 0.5rem 1.5rem rgba(111, 66, 193, 0.15) !important;
        border: 1px solid rgba(111, 66, 193, 0.3) !important;
        transition: box-shadow 0.2s ease, border 0.2s ease;
    }

.btn-purple {
    background-color: var(--mt-purple);
    color: white;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 700;
    border: none;
}

    .btn-purple:hover {
        background-color: var(--mt-purple-dark);
        color: white;
       /* transform: translateY(-2px);*/
        box-shadow: 0 10px 20px rgba(111, 66, 193, 0.2);
    }

/* Soft backgrounds for icons */
.bg-primary-soft {
    background-color: rgba(111, 66, 193, 0.1);
}

.text-purple {
    color: var(--mt-purple);
}

/* Typography improvements */
h1, h2, h3, h4 {
    letter-spacing: -0.02em;
    font-weight: 800;
}


/* Solutions Card Styling */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1.25rem;
}

    .card-hover:hover {
    /*    transform: translateY(-10px);*/
        box-shadow: 0 1rem 3rem rgba(111, 66, 193, 0.15) !important;
    }

.text-purple {
    color: #6f42c1 !important;
}

.text-teal {
    color: #20c997 !important;
}

.border-start {
    border-left: 2px solid #f8f9fa !important;
}

@media (max-width: 768px) {
    .border-start {
        border-left: none !important;
        border-bottom: 2px solid #f8f9fa !important;
        padding-bottom: 20px;
    }
}

.text-purple-light {
    color: #b392f0;
}

.border-purple-soft {
    border-color: rgba(111, 66, 193, 0.2);
}

.smaller {
    font-size: 0.85rem;
}

/* Modal styling for the lead form if you decide to trigger it */
.modal-content {
    border-radius: 1.5rem;
    border: none;
}

/* Add to site.css */
.tab-pane .row:nth-child(even) {
    flex-direction: row-reverse;
}

.nav-pills .nav-link {
    color: #6c757d;
    border-radius: 50px;
    transition: all 0.3s ease;
}

    .nav-pills .nav-link.active {
        background-color: #6f42c1 !important;
        box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
    }



.trust-bar img {
    max-height: 50px;
    width: auto;
    filter: grayscale(100%); /* Makes them look like a matched set */
    opacity: 0.6;
    transition: all 0.3s ease;
    margin: 0 30px;
}

    .trust-bar img:hover {
        filter: grayscale(0%);
        opacity: 1;
    }

/* Ensure the purple button looks and feels like a button */
.btn-purple {
    background-color: #6f42c1;
    color: white !important;
    border: none;
    transition: all 0.3s ease;
}

    .btn-purple:hover {
        background-color: #5a2d9c; /* Darker purple on hover */
        transform: none !important;
        box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3) !important;
    }

    .btn-purple:active {
        transform: none !important;
    }

/* Define the Outline Purple Button Style */
.btn-outline-purple {
    color: #6f42c1;
    background-color: transparent;
    background-image: none;
    border: 2px solid #6f42c1; /* Thicker 2px border for an "Engineer-Led" feel */
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 0.75rem; /* Matches your soft design language */
}

    .btn-outline-purple:hover {
        color: #fff !important;
        background-color: #6f42c1;
        border-color: #6f42c1;
        box-shadow: 0 4px 12px rgba(111, 66, 193, 0.2);
    }

/* Fix for buttons inside cards on the dashboard */
.card-body .btn-outline-purple {
    margin-top: 1rem;
    padding: 0.6rem;
}

.brand-hover {
    transition: color 0.2s ease;
    cursor: pointer;
}

    .brand-hover:hover {
        color: #6f42c1 !important; /* Magic Tagz Purple */
    }


/* --- MAGIC TAGZ PAGINATION --- */

/* The active page number */
.pagination-purple .page-item.active .page-link {
    background-color: #6f42c1 !important;
    border-color: #6f42c1 !important;
    color: #ffffff !important;
}

/* The standard page links */
.pagination-purple .page-link {
    color: #6f42c1;
    border: 1px solid rgba(111, 66, 193, 0.1);
    transition: all 0.2s ease;
}

    /* Hover state */
    .pagination-purple .page-link:hover {
        background-color: rgba(111, 66, 193, 0.05);
        color: #5a2d9c;
        border-color: #6f42c1;
    }

/* Disabled state (e.g., "Previous" on page 1) */
.pagination-purple .page-item.disabled .page-link {
    background-color: #f8f9fa;
    color: #adb5bd;
    border-color: #dee2e6;
}